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.StringA 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
Microsoft.SharePoint.Workflow Namespace
Other Resources
Workflows in SharePoint Foundation