HttpMessageInvoker.Dispose HttpMessageInvoker.Dispose HttpMessageInvoker.Dispose HttpMessageInvoker.Dispose Method

Definition

释放由 HttpMessageInvoker 使用的非托管资源,并可根据需要释放托管资源。 Releases the unmanaged resources used by the HttpMessageInvoker and optionally disposes of the managed resources.

Overloads

Dispose() Dispose() Dispose() Dispose()

释放由 HttpMessageInvoker 使用的非托管资源和托管资源。 Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageInvoker.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放由 HttpMessageInvoker 使用的非托管资源,并可根据需要释放托管资源。 Releases the unmanaged resources used by the HttpMessageInvoker and optionally disposes of the managed resources.

Dispose() Dispose() Dispose() Dispose()

释放由 HttpMessageInvoker 使用的非托管资源和托管资源。 Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageInvoker.

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

Implements

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放由 HttpMessageInvoker 使用的非托管资源,并可根据需要释放托管资源。 Releases the unmanaged resources used by the HttpMessageInvoker and optionally disposes of the managed resources.

protected:
 virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

参数

disposing
Boolean Boolean Boolean Boolean

如果释放托管资源和非托管资源,则为 true;如果仅释放非托管资源,则为 false true to release both managed and unmanaged resources; false to releases only unmanaged resources.

Applies to