TermSet.Owner Property
Gets or sets the user who is responsible for the current TermSet.
Namespace: Microsoft.SharePoint.Taxonomy
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
Public Overrides Property Owner As String
Get
Set
'Usage
Dim instance As TermSet
Dim value As String
value = instance.Owner
instance.Owner = value
public override string Owner { get; set; }
Property Value
Type: System.String
The login name of the user who is the owner of the TermSet.
Exceptions
Exception | Condition |
---|---|
UnauthorizedAccessException | The current user has insufficient permissions to perform this operation. |
ArgumentException | The user name is too long |
ArgumentException | The user name cannot be found. |
ArgumentNullException | The value is a null reference (Nothing in Visual Basic) |
TermStoreOperationException | This operation is invalid in the Orphaned terms TermSet. The operation failed. |
Remarks
The Owner value can be an empty string. Owner cannot be set on the Orphaned terms TermSet. The current user must have TaxonomyRights.Edit permission to use this method. Call the CommitAll() method to save this change to the database.