Share via


SPWorkflowTemplate.IsCategoryApplicable method

Returns a value that is true if the categories string contains any of the requested categories; otherwise, false.

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

Syntax

'Declaration
Public Shared Function IsCategoryApplicable ( _
    strAllCategs As String, _
    rgReqCateg As String() _
) As Boolean
'Usage
Dim strAllCategs As String
Dim rgReqCateg As String()
Dim returnValue As Boolean

returnValue = SPWorkflowTemplate.IsCategoryApplicable(strAllCategs, _
    rgReqCateg)
public static bool IsCategoryApplicable(
    string strAllCategs,
    string[] rgReqCateg
)

Parameters

  • strAllCategs
    Type: System.String

    A string representing all of the categories.

  • rgReqCateg
    Type: []

    A string representing the requested categories.

Return value

Type: System.Boolean
true if the categories string contains any of the requested categories; otherwise, false.

Remarks

This method determines whether any of the categories specified in the rgReqCateg parameter matches the category specified in the strAllCategs parameter.

See also

Reference

SPWorkflowTemplate class

SPWorkflowTemplate members

Microsoft.SharePoint.Workflow namespace

Other resources

Workflows in Windows SharePoint Services

Workflow Development for Windows SharePoint Services

Workflow Object Model in Windows SharePoint Services Overview