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 with a name corresponding to the parameter fieldName.

See Also

Reference

TaxonomyField Class

TaxonomyField Members

TaxonomyField Overload

Microsoft.SharePoint.Taxonomy Namespace

TaxonomyFieldValue

Microsoft.SharePoint.Taxonomy

SPFieldLookup

SPField

Microsoft.SharePoint