Share via


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: System.String
    The 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

See Also

Reference

ISharePointConnection Interface

ExecuteCommand Overload

Microsoft.VisualStudio.SharePoint Namespace