Share via


LinkField Constructor (SPFieldCollection, String, 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, _
    typeName As String, _
    displayName As String _
)
'Usage
Dim fields As SPFieldCollection
Dim typeName As String
Dim displayName As String

Dim instance As New LinkField(fields, _
    typeName, displayName)
public LinkField(
    SPFieldCollection fields,
    string typeName,
    string displayName
)

Parameters

  • typeName
    Type: System.String
    Name of the type of the created field.
  • displayName
    Type: System.String
    Display name of the created field.

Remarks

The instance is initialized with the field name specified by the fieldName parameter and type name specified by the typeName parameter and added into the SPFieldCollection specified by the fields parameter.

See Also

Reference

LinkField Class

LinkField Members

LinkField Overload

Microsoft.SharePoint.Publishing.Fields Namespace