SharePointCommandAttribute Class

 

Indicates that a method is a SharePoint command.

Namespace:   Microsoft.VisualStudio.SharePoint.Commands
Assembly:  Microsoft.VisualStudio.SharePoint.Commands (in Microsoft.VisualStudio.SharePoint.Commands.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.SharePoint.Commands.SharePointCommandAttribute

[AttributeUsageAttribute(AttributeTargets.Method, Inherited = false, 
	AllowMultiple = false)]
public sealed class SharePointCommandAttribute : Attribute

NameDescription
System_CAPS_pubmethodSharePointCommandAttribute()

Initializes a new instance of the SharePointCommandAttribute class.

System_CAPS_pubmethodSharePointCommandAttribute(String)

Initializes a new instance of the SharePointCommandAttribute class with the specified command ID.

NameDescription
System_CAPS_pubpropertyCommandId

Gets the ID of the command.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: