Share via


Helper.FileTypeIs method (WorkflowContext, String, Int32, String)

Checks the DocIcon field of a specified SharePoint Foundation list item for a specified document type.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Public Shared Function FileTypeIs ( _
    context As WorkflowContext, _
    listId As String, _
    listItem As Integer, _
    name As String _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As Integer
Dim name As String
Dim returnValue As Boolean

returnValue = Helper.FileTypeIs(context, _
    listId, listItem, name)
public static bool FileTypeIs(
    WorkflowContext context,
    string listId,
    int listItem,
    string name
)

Parameters

  • listId
    Type: System.String

    A string that represents the GUID of the SharePoint Foundation list identifier (ID). May also be the display name of the list.

  • listItem
    Type: System.Int32

    An integer that represents the SharePoint Foundation list item in a specified list.

  • name
    Type: System.String

    A string that represents the document type.

Return value

Type: System.Boolean
true if the file type name matches the DocIcon field value; otherwise, the value is false.

Remarks

Document type names are located in the docicon.xml file located in the following directory:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML.

See also

Reference

Helper class

Helper members

FileTypeIs overload

Microsoft.SharePoint.WorkflowActions namespace