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)

public TaxonomyField(
	SPFieldCollection fields,
	string fieldName
)

Parameters

fields
Type: Microsoft.SharePoint.SPFieldCollection

An SPFieldCollection object that represents the parent field collection.

fieldName
Type: System.String

A string that contains the name of the field.

ExceptionCondition
ArgumentException

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

Show: