MessageSender.Dispose Method (Boolean)

Releases all instances used by the MessageSender class and disposes of the message sender. This is the default implementation of the IDisposable pattern.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)

Syntax

'Declaration
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'Usage
Dim disposing As Boolean

Me.Dispose(disposing)
protected virtual void Dispose(
    bool disposing
)
protected:
virtual void Dispose(
    bool disposing
)
abstract Dispose : 
        disposing:bool -> unit 
override Dispose : 
        disposing:bool -> unit 
protected function Dispose(
    disposing : boolean
)

Parameters

  • disposing
    Type: System.Boolean
    true if the disposing call will invoke Close() (if the object has not been disposed); otherwise false.

See Also

Reference

MessageSender Class

Dispose Overload

Microsoft.ServiceBus.Messaging Namespace