Class SafeAccountHandle
Definition
- Namespace:
- Tizen.Account.AccountManager
- Assembly:
- Tizen.Account.AccountManager.dll
Represents a wrapper class for a unmanaged Account handle.
C#Copypublic sealed class SafeAccountHandle : SafeHandle, IDisposable
- Inheritance
-
objectSystem.Runtime.ConstrainedExecution.CriticalFinalizerObjectSystem.Runtime.InteropServices.SafeHandleSafeAccountHandle
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic SafeAccountHandle()
View Source
SafeAccountHandle(IntPtr, bool)
Initializes a new instance of the SafeAccountHandle class.
Declaration
C#Copypublic SafeAccountHandle(IntPtr existingHandle, bool ownsHandle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | existingHandle | An IntPtr object that represents the pre-existing handle to use. |
| bool | ownsHandle | true to reliably release the handle during the finalization phase; false to prevent reliable release. |
Properties
Declaration
C#Copypublic override bool IsInvalid { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
System.Runtime.InteropServices.SafeHandle.IsInvalid
Methods
View Source
ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
Declaration
C#Copyprotected override bool ReleaseHandle()
Returns
| Type | Description |
|---|---|
| bool | true if the handle is released successfully |
Overrides
System.Runtime.InteropServices.SafeHandle.ReleaseHandle()
Implements
System.IDisposable