Share via


TaxonomyFieldValue.TermGuid property

Gets or sets a string representing the term GUID.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
<DataMemberAttribute(Name := "TermID")> _
Public Property TermGuid As String
    Get
    Set
'Usage
Dim instance As TaxonomyFieldValue
Dim value As String

value = instance.TermGuid

instance.TermGuid = value
[DataMemberAttribute(Name = "TermID")]
public string TermGuid { get; set; }

Property value

Type: System.String
A string representing a GUID that uniquely identifies a Term object.

Exceptions

Exception Condition
MemberAccessException

The GUID of the Term was not specified when the TaxonomyFieldValue object was constructed and the TaxonomyFieldValue object is not bound to a SPField object.

Remarks

If an invalid internal identifer was specified when the [TaxonomyFieldValue] object was constructed, this property will return an empty string.

See also

Reference

TaxonomyFieldValue class

TaxonomyFieldValue members

Microsoft.SharePoint.Taxonomy namespace

TaxonomyField

Microsoft.SharePoint.Taxonomy

Microsoft.SharePoint