SharePointCommandAttribute 类

定义

指示方法属于 SharePoint 命令。

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class SharePointCommandAttribute : Attribute
继承
SharePointCommandAttribute
属性

示例

调入 SharePoint 对象模型

如何:创建 SharePoint 命令

注解

将此特性应用于要指定 SharePoint 命令的方法。 SharePoint 命令是一种方法,可用于从 Visual Studio 中的 SharePoint 工具的扩展调用 SharePoint 服务器对象模型中的 Api。 有关详细信息,请参阅调入 Sharepoint 对象模型如何:创建 sharepoint 命令

构造函数

SharePointCommandAttribute()

初始化 SharePointCommandAttribute 类的新实例。

SharePointCommandAttribute(String)

用指定的命令 ID 初始化 SharePointCommandAttribute 类的新实例。

属性

CommandId

获取命令的 ID。

适用于