SharePointCommandAttribute 建構函式 (String)

使用指定的命令識別碼,初始化 SharePointCommandAttribute 類別的新執行個體。

命名空間:  Microsoft.VisualStudio.SharePoint.Commands
組件:  Microsoft.VisualStudio.SharePoint.Commands (在 Microsoft.VisualStudio.SharePoint.Commands.dll 中)

語法

'宣告
Public Sub New ( _
    commandId As String _
)
public SharePointCommandAttribute(
    string commandId
)

參數

  • commandId
    型別:System.String
    SharePoint 命令的識別碼。這個識別碼必須是唯一的,建議您使用前面加上方法之命名空間的方法名稱。

.NET Framework 安全性

請參閱

參考

SharePointCommandAttribute 類別

SharePointCommandAttribute 多載

Microsoft.VisualStudio.SharePoint.Commands 命名空間