Class SafeBundleHandle
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
Represents a wrapper class for an unmanaged bundle handle.
public sealed class SafeBundleHandle : SafeHandle, IDisposable
- Inheritance
-
objectSystem.Runtime.ConstrainedExecution.CriticalFinalizerObjectSystem.Runtime.InteropServices.SafeHandleSafeBundleHandle
- Implements
-
System.IDisposable
Constructors
View SourceSafeBundleHandle()
Initializes a new instance of the SafeBundleHandle class.
Declaration
public SafeBundleHandle()
SafeBundleHandle(IntPtr, bool)
Initializes a new instance of the SafeBundleHandle class.
Declaration
public SafeBundleHandle(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
View SourceIsInvalid
Gets a value that indicates whether the handle is invalid.
Declaration
public override bool IsInvalid { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
System.Runtime.InteropServices.SafeHandle.IsInvalid
Methods
View SourceReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
Declaration
protected override bool ReleaseHandle()
Returns
Type | Description |
---|---|
bool | true if the handle is released successfully. |
Overrides
System.Runtime.InteropServices.SafeHandle.ReleaseHandle()
Implements
System.IDisposable