Share via


TaxonomyFieldValueCollection constructor (String)

Initializes a new instance of a TaxonomyFieldValueCollection that is not bound to a field.

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

Syntax

'Declaration
Public Sub New ( _
    fieldValue As String _
)
'Usage
Dim fieldValue As String

Dim instance As New TaxonomyFieldValueCollection(fieldValue)
public TaxonomyFieldValueCollection(
    string fieldValue
)

Parameters

Remarks

The fieldValue must be in the SPLookup format, which requires wss Id;#Label|Guid. You can repeat this entry for multiple values by repeating the ;# characters.

This value is not bound to a field, so some methods may throw a MemberAccessException.

See also

Reference

TaxonomyFieldValueCollection class

TaxonomyFieldValueCollection members

TaxonomyFieldValueCollection overload

Microsoft.SharePoint.Taxonomy namespace