DisposableReference<T> Class

 

Represents the disposable reference.

Namespace:   Microsoft.WindowsAzure.Common.Internals
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

System.Object
  Microsoft.WindowsAzure.Common.Internals.DisposableReference<T>

public class DisposableReference<T> : IDisposable
where T : class, IDisposable

Type Parameters

T

The type of the reference.

NameDescription
System_CAPS_pubmethodDisposableReference<T>(T)

Initializes a new instance of the DisposableReference<T> class.

NameDescription
System_CAPS_pubpropertyReference

Gets the reference object.

System_CAPS_pubpropertyReferenceCount

Gets the number of reference objects.

NameDescription
System_CAPS_pubmethodAddReference()

Adds a reference to the reference count.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodReleaseReference()

Releases the resource used by a reference.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDisposable.Dispose()

Releases the resources used by the DisposableReference<T> object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: