Term.SetLocalCustomProperty method
Sets a new local custom property or updates the value of an existing local property.
Namespace: Microsoft.SharePoint.Taxonomy
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
Public Sub SetLocalCustomProperty ( _
name As String, _
value As String _
)
'Usage
Dim instance As Term
Dim name As String
Dim value As String
instance.SetLocalCustomProperty(name, _
value)
public void SetLocalCustomProperty(
string name,
string value
)
Parameters
name
Type: System.StringThe name of the property.
value
Type: System.StringThe value of the property.
Exceptions
Exception | Condition |
---|---|
UnauthorizedAccessException | The user must have the EditTerm permission to edit this term to perform this operation. |
Remarks
Add a custom property by using name if no local property exists for the Term object.