Share via


Term.Owner property

Gets or sets the user who is responsible for the current Term object.

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 Term
Dim value As String

value = instance.Owner

instance.Owner = value
public override string Owner { get; set; }

Property value

Type: System.String
Valid user name for Term owner

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

TermStoreOperationException

This operation is invalid in the orphaned terms TermSet. The operation failed.

ArgumentNullException

The user name is a null reference (Nothing in Visual Basic) or not empty.

ArgumentException

The user name is too long

ArgumentException

The user name does not exist.

Remarks

The owner must not be empty or a null reference (Nothing in Visual Basic), and must be a valid user name. The current user must have TaxonomyRights.EditTerm permission to set this property. Call the CommitAll() method to save this change to the database.

See also

Reference

Term class

Term members

Microsoft.SharePoint.Taxonomy namespace