Share via


TaxonomyField constructor (SPFieldCollection, String)

Initializes a new instance of the TaxonomyField object that is based on the specified field collection and name.

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

Syntax

'Declaration
Public Sub New ( _
    fields As SPFieldCollection, _
    fieldName As String _
)
'Usage
Dim fields As SPFieldCollection
Dim fieldName As String

Dim instance As New TaxonomyField(fields, _
    fieldName)
public TaxonomyField(
    SPFieldCollection fields,
    string fieldName
)

Parameters

  • fieldName
    Type: System.String

    A string that contains the name of the field.

Exceptions

Exception Condition
ArgumentException

There are no fields in the field collection that matches the parameter fieldName.

See also

Reference

TaxonomyField class

TaxonomyField members

TaxonomyField overload

Microsoft.SharePoint.Taxonomy namespace

TaxonomyFieldValue

Microsoft.SharePoint.Taxonomy

SPFieldLookup

SPField

Microsoft.SharePoint