SPFieldWorkflowStatus constructor

Initializes a new instance of the SPFieldWorkflowStatus class.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.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 SPFieldWorkflowStatus(fields, _
    typeName, displayName)
public SPFieldWorkflowStatus(
    SPFieldCollection fields,
    string typeName,
    string displayName
)

Parameters

  • typeName
    Type: System.String

    The name of the field type. The name can be a string representation of an SPFieldType value, such as the value that is returned by the SPFieldType.WorkflowStatus.ToString method.

  • displayName
    Type: System.String

    The value assigned to the Title property of the SPFieldWorkflowStatus object.

Remarks

Use this constructor to create an SPFieldWorkflowStatus object before adding it to the collection in the Fields property of a list or content type. After adding a new field to a collection, call the Init(String, String) method to initialize the field.

See also

Reference

SPFieldWorkflowStatus class

SPFieldWorkflowStatus members

Microsoft.SharePoint namespace

SPFieldType

WorkflowAssociations

WorkflowAssociations