Compartilhar via


SPItemEventProperties.Dispose method

Libera todos os recursos não gerenciados usados pelo objeto de coleção de site associado com o evento.

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

Syntax

'Declaração
Public Sub Dispose
'Uso
Dim instance As SPItemEventProperties

instance.Dispose()
public void Dispose()

Implements

IDisposable.Dispose()

Comentários

Este método libera os recursos para a lista, o item da lista, o site e o conjunto de sites usados pelo objeto.

Call Dispose when you are finished using this class. The Dispose method leaves this class in an unusable state. After calling Dispose , you must release all references to this class so the garbage collector can reclaim the memory that the class was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method. For specific guidance on disposing SharePoint classes, see Best Practices with SharePoint Foundation: Disposing Objects.
Note Always call Dispose before you release your last reference to this class. Otherwise, the resources it is using will not be freed until the garbage collector calls this object's Finalize method.

Ver também

Referência

SPItemEventProperties class

SPItemEventProperties members

Microsoft.SharePoint namespace