DisposableReference<T> Class

 

Represents the disposable reference.

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

Inheritance Hierarchy

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

Syntax

public class DisposableReference<T> : IDisposable
where T : class, IDisposable
generic<typename T>
where T : ref class, IDisposable
public ref class DisposableReference : IDisposable
type DisposableReference<'T when 'T : not struct and IDisposable> = 
    class
        interface IDisposable
    end
Public Class DisposableReference(Of T As { Class, IDisposable })
    Implements IDisposable

Type Parameters

  • T
    The type of the reference.

Constructors

Name Description
System_CAPS_pubmethod DisposableReference<T>(T)

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

Properties

Name Description
System_CAPS_pubproperty Reference

Gets the reference object.

System_CAPS_pubproperty ReferenceCount

Gets the number of reference objects.

Methods

Name Description
System_CAPS_pubmethod AddReference()

Adds a reference to the reference count.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ReleaseReference()

Releases the resource used by a reference.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IDisposable.Dispose()

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

Thread Safety

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

See Also

Microsoft.WindowsAzure.Common.Internals Namespace

Return to top