Share via


SPRibbonCommand Constructor (String)

Initializes a new instance of the SPRibbonCommand class that has the specified command identifier.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub New ( _
    commandId As String _
)
'Usage
Dim commandId As String

Dim instance As New SPRibbonCommand(commandId)
public SPRibbonCommand(
    string commandId
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

commandId is a null reference (Nothing in Visual Basic).

See Also

Reference

SPRibbonCommand Class

SPRibbonCommand Members

SPRibbonCommand Overload

Microsoft.SharePoint.WebControls Namespace