You can browse various code snippets for accessing the .NET API here. You can also download samples from here. Click an action from the left side to view the corresponding action.