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
Public Property TermGuid As String
    Get
    Set
'Usage
Dim instance As TaxonomyFieldValue
Dim value As String

value = instance.TermGuid

instance.TermGuid = value
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