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 | |
---|---|---|
DisposableReference<T>(T) | Initializes a new instance of the DisposableReference<T> class. |
Properties
Name | Description | |
---|---|---|
Reference | Gets the reference object. |
|
ReferenceCount | Gets the number of reference objects. |
Methods
Name | Description | |
---|---|---|
AddReference() | Adds a reference to the reference count. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ReleaseReference() | Releases the resource used by a reference. |
|
ToString() | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
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