Share via


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

Determines whether the specified document type name matches the value of the DocIcon field of the specified list item.

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 SPItemKey, _
    name As String _
) As Boolean
'Usage
Dim context As WorkflowContext
Dim listId As String
Dim listItem As SPItemKey
Dim name As String
Dim returnValue As Boolean

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

Parameters

  • listId
    Type: System.String

    The GUID or display name of the list.

  • name
    Type: System.String

    The name of the document type to check.

Return value

Type: System.Boolean
true if the specified document type name matches the value of the DocIcon field of the specified list item; otherwise, 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