ISharePointConnection Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides methods you can use to execute SharePoint commands that call into the SharePoint server object model from an extension of the SharePoint tools in Visual Studio.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

public interface ISharePointConnection : IDisposable

The ISharePointConnection type exposes the following members.

  NameDescription
Public propertyAuthenticationMode
Public propertyIsEnabledGets or sets the flag indicating if the connection is enabled.
Public propertySiteUrlGets the url to the SharePoint site that is connected to.
Top

  NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public methodExecuteCommand(String)Executes the SharePoint command with the specified identifier.
Public methodExecuteCommand<TResult>(String)Executes the SharePoint command with the specified identifier and return value type.
Public methodExecuteCommand<T>(String, T)Executes the SharePoint command with the specified identifier and parameter type.
Public methodExecuteCommand<T, TResult>(String, T)Executes the SharePoint command with the specified identifier, parameter type, and return value type.
Top

SharePoint commands are methods that can be used in a SharePoint tools extension to call into the SharePoint server object model. After you define a SharePoint command, you can execute it by obtaining an ISharePointConnection object and then calling one of the ExecuteCommand methods. For more information, see How to: Execute a SharePoint Command.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft