Share via


SPLinkButton.CommandName property

Gets or sets the command name associated with the SPLinkButton control that is passed to the command event handler.

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

Syntax

'Declaration
Public Property CommandName As String
    Get
    Set
'Usage
Dim instance As SPLinkButton
Dim value As String

value = instance.CommandName

instance.CommandName = value
public string CommandName { get; set; }

Property value

Type: System.String
A string that contains the name of the command.

See also

Reference

SPLinkButton class

SPLinkButton members

Microsoft.SharePoint.WebControls namespace