SharePointCommandAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that a method is a SharePoint command.
public ref class SharePointCommandAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class SharePointCommandAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type SharePointCommandAttribute = class
inherit Attribute
Public NotInheritable Class SharePointCommandAttribute
Inherits Attribute
- Inheritance
-
SharePointCommandAttribute
- Attributes
Examples
Calling into the SharePoint Object Models
How to: Create a SharePoint Command
Remarks
Apply this attribute to a method that you want to designate a SharePoint command. A SharePoint command is a method that can be used to call APIs in the SharePoint server object model from an extension for the SharePoint tools in Visual Studio. For more information, see Calling into the SharePoint Object Models and How to: Create a SharePoint Command.
Constructors
SharePointCommandAttribute() |
Initializes a new instance of the SharePointCommandAttribute class. |
SharePointCommandAttribute(String) |
Initializes a new instance of the SharePointCommandAttribute class with the specified command ID. |
Properties
CommandId |
Gets the ID of the command. |