SPWorkflowAssociationCollection.GetAssociationCore method

Gets the workflow associations with specified GUID from the collection.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMemberOutParam)> _
Protected Sub GetAssociationCore ( _
    associationIdToFetch As Guid, _
    <OutAttribute> ByRef columnCount As UInteger, _
    <OutAttribute> ByRef rowCount As UInteger, _
    <OutAttribute> ByRef variantAssociation As Object _
)
'Usage
Dim associationIdToFetch As Guid
Dim columnCount As UInteger
Dim rowCount As UInteger
Dim variantAssociation As Object

Me.GetAssociationCore(associationIdToFetch, _
    columnCount, rowCount, variantAssociation)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMemberOutParam)]
protected void GetAssociationCore(
    Guid associationIdToFetch,
    out uint columnCount,
    out uint rowCount,
    out Object variantAssociation
)

Parameters

  • associationIdToFetch
    Type: System.Guid

    The GUID of the workflow association.

  • columnCount
    Type: System.UInt32

    The number of columns in the result. This parameter is passed uninitialized.

  • rowCount
    Type: System.UInt32

    The number of rows in the result. This parameter is passed uninitialized.

  • variantAssociation
    Type: System.Object

    An object that represents a set of the variant associations. This parameter is passed uninitialized.

Remarks

This method gets workflow associations from the content database to provide the core implementation for getting workflow associations.

If the ParentWeb parameter is null , throws an ArgumentNullException. If the workflow can be started manually but the user does not have permissions, an ArgumentException is thrown.

See also

Reference

SPWorkflowAssociationCollection class

SPWorkflowAssociationCollection members

Microsoft.SharePoint.Workflow namespace