Share via


TaxonomyFieldValueCollection constructor (String, SPField)

Initializes a new instance of a TaxonomyFieldValueCollection that is bound to the creatingField parameter.

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

Syntax

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

Dim instance As New TaxonomyFieldValueCollection(fieldValue, _
    creatingField)
public TaxonomyFieldValueCollection(
    string fieldValue,
    SPField creatingField
)

Parameters

  • fieldValue
    Type: System.String

    Field that this value is bound to

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