SPFieldWorkflowStatus Constructor
Initializes a new instance of the SPFieldWorkflowStatus class.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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
fields
Type: Microsoft.SharePoint.SPFieldCollectionThe field collection to which this field belongs.
typeName
Type: System.StringThe 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.StringThe 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.