ISharePointConnection.ExecuteCommand Method (String)
Executes the SharePoint command with the specified identifier.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Sub ExecuteCommand ( _
commandId As String _
)
void ExecuteCommand(
string commandId
)
Parameters
commandId
Type: StringThe identifier of the SharePoint command to execute.
Exceptions
Exception | Condition |
---|---|
SharePointConnectionException | An error occurred while connecting to SharePoint. |
ArgumentOutOfRangeException | commandId does not match any available SharePoint commands. |
SharePointCommandException | An exception was thrown by the SharePoint command. |
Remarks
Use this method to execute a SharePoint command that has no custom parameter or return value. For more information, see How to: Create a SharePoint Command and How to: Execute a SharePoint Command.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.