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
fields
Type: Microsoft.SharePoint.SPFieldCollectionAn SPFieldCollection object that represents the parent field collection.
fieldName
Type: System.StringA 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. |