TermSet.AddStakeholder 方法
將TermSet物件中的關鍵。
命名空間: Microsoft.SharePoint.Client.Taxonomy
組件: Microsoft.SharePoint.Client.Taxonomy.Silverlight (在 Microsoft.SharePoint.Client.Taxonomy.Silverlight.dll 中); Microsoft.SharePoint.Client.Taxonomy.Phone (在 Microsoft.SharePoint.Client.Taxonomy.Phone.dll 中) Microsoft.SharePoint.Client.Taxonomy (在 Microsoft.SharePoint.Client.Taxonomy.dll 中)
語法
'宣告
Public Sub AddStakeholder ( _
stakeholderName As String _
)
'用途
Dim instance As TermSet
Dim stakeholderName As String
instance.AddStakeholder(stakeholderName)
public void AddStakeholder(
string stakeholderName
)
參數
stakeholderName
類型:System.String若要新增關鍵人員的使用者登入名稱
例外狀況
例外狀況 | 條件 |
---|---|
UnauthorizedAccessException | 目前的使用者會有足夠的權限,才能執行此作業。 |
ArgumentException | 使用者名稱是太長 |
ArgumentException | 找不到的使用者名稱。 |
ArgumentNullException | stakeholderName是null 參考 (未執行任何動作 於 Visual Basic 中)或空白。 |
備註
關鍵是具有目前TermSet物件中的感興趣的使用者。0 或多個專案關係人,可以有TermSet 。目前的使用者必須具備TaxonomyRights.Edit權限使用這個方法。呼叫CommitAll()方法,將這項變更儲存至資料庫。