LinkField Constructor (SPFieldCollection, String)
Initializes a new instance of the LinkField class.
Namespace: Microsoft.SharePoint.Publishing.Fields
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.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 LinkField(fields, _
fieldName)
public LinkField(
SPFieldCollection fields,
string fieldName
)
Parameters
- fields
Type: Microsoft.SharePoint.SPFieldCollection
Collection of fields into which to add the newly created LinkField object.
- fieldName
Type: System.String
Name of the field to create.
Remarks
The instance is initialized with the field name specified by the fieldName parameter and inserted into the SPFieldCollection specified by the fields parameter.