다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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 SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation