Compartilhar via


SPRibbonCommand Members

Include Protected Members
Include Inherited Members

Represents a generic ribbon command.

The SPRibbonCommand type exposes the following members.

Constructors

  Name Description
Public method SPRibbonCommand(String) Initializes a new instance of the SPRibbonCommand class that has the specified command identifier.
Public method SPRibbonCommand(String, String) Initializes a new instance of the SPRibbonCommand class that has the specified command identifier and the code to run when the command is invoked.
Public method SPRibbonCommand(String, String, String) Initializes a new instance of the SPRibbonCommand class that has the specified command identifier, the code to run when the command is invoked, and the code that determines whether to enable the command.

Top

Properties

  Name Description
Public property EnabledStatement Gets or sets the code that is run to determine whether the command should be enabled.
Public property HandlerStatement Gets or sets the code that is run when the command is invoked.
Public property Id Gets the identifier of the command.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See Also

Reference

SPRibbonCommand Class

Microsoft.SharePoint.WebControls Namespace