ThmxTheme.IDisposable.Dispose method
由這個類別的物件釋放使用中的任何未受管理的資源。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Private Sub Dispose Implements IDisposable.Dispose
'用途
Dim instance As ThmxTheme
CType(instance, IDisposable).Dispose()
void IDisposable.Dispose()
Implements
備註
這個方法會呼叫Close()方法,以釋放佈景主題資源。
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.