X509CertificateClaimSet.Dispose X509CertificateClaimSet.Dispose X509CertificateClaimSet.Dispose X509CertificateClaimSet.Dispose Method

定義

釋放 X509CertificateClaimSet 所使用的所有資源。Releases all resources used by the X509CertificateClaimSet.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

實作

備註

當您完成使用 Dispose 後,請呼叫 X509CertificateClaimSet 方法。Call the Dispose method when you are finished using the X509CertificateClaimSet. Dispose 方法會將 X509CertificateClaimSet 保留在無法使用的狀態。The Dispose method leaves the X509CertificateClaimSet in an unusable state. 在呼叫 Dispose 方法後,您必須釋放所有對 X509CertificateClaimSet 的參考,讓記憶體回收行程可以回收 X509CertificateClaimSet 所佔用的記憶體。After calling the Dispose method, you must release all references to the X509CertificateClaimSet so the garbage collector can reclaim the memory that the X509CertificateClaimSet occupied.

注意

在您釋放最後一個 Dispose 參考之前,請務必呼叫 X509CertificateClaimSetAlways call Dispose before you release your last reference to the X509CertificateClaimSet. 否則,在記憶體回收行程呼叫 X509CertificateClaimSet 物件的 Finalize 方法之前,不會釋放它正在使用的資源。Otherwise, the resources it is using are not freed until the garbage collector calls the X509CertificateClaimSet object's Finalize method.

適用於