Compartilhar via


SPWorkflowManager.Dispose method (Boolean)

Libera os recursos não gerenciados usados pela classe SPWorkflowManager e, opcionalmente, libera os recursos gerenciados.

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

Syntax

'Declaração
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMethod)> _
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'Uso
Dim disposing As Boolean

Me.Dispose(disposing)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMethod)]
protected virtual void Dispose(
    bool disposing
)

Parâmetros

  • disposing
    Type: System.Boolean

    true para liberar recursos gerenciados e não gerenciados; false para liberar apenas recursos não gerenciados.

Comentários

Se o fluxo de trabalho está sendo executado no Internet Information Services 7.0 ou Microsoft SharePoint Foundation, esse método não liberará os recursos.

This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected Dispose(Boolean) method with the disposing parameter set to true. Finalize() invokes Dispose(Boolean) with disposing set to false. When the disposing parameter is true , this method releases all resources held by any managed objects that this class references. This method invokes the Dispose() method of each referenced object.
Notes to Inheritors
Dispose can be called multiple times by other objects. When overriding Dispose(Boolean) , be careful not to reference objects that have been previously disposed of in an earlier call to Dispose. For more information about how to implement Dispose(Boolean) , see Implementing a Dispose Method.
For more information about Dispose and Finalize , see Cleaning Up Unmanaged Resources and Overriding the Finalize Method.

Ver também

Referência

SPWorkflowManager class

SPWorkflowManager members

Dispose overload

Microsoft.SharePoint.Workflow namespace

Outros recursos

Workflows in Windows SharePoint Services

Workflow Development for Windows SharePoint Services

Workflow Object Model in Windows SharePoint Services Overview