Class SafeAppControlHandle

Definition

Namespace:
Tizen.Applications
Assembly:
Tizen.Applications.Common.dll
API Level:
3

Represents a wrapper class for an unmanaged AppControl handle.

C#
Copy
public sealed class SafeAppControlHandle : SafeHandle, IDisposable
Inheritance
System.Object
System.Runtime.InteropServices.SafeHandle
SafeAppControlHandle
Implements
System.IDisposable

Constructors

View Source

SafeAppControlHandle()

Initializes a new instance of the SafeAppControlHandle class.

Declaration
C#
Copy
public SafeAppControlHandle()
API Level: 3
View Source

SafeAppControlHandle(IntPtr, Boolean)

Initializes a new instance of the SafeAppControlHandle class.

Declaration
C#
Copy
public SafeAppControlHandle(IntPtr existingHandle, bool ownsHandle)
Parameters
Type Name Description
System.IntPtr existingHandle

An IntPtr object that represents the pre-existing handle to use.

System.Boolean ownsHandle

true to reliably release the handle during the finalization phase; false to prevent reliable release.

API Level: 3

Properties

View Source

IsInvalid

Gets a value that indicates whether the handle is invalid.

Declaration
C#
Copy
public override bool IsInvalid { get; }
Property Value
Type Description
System.Boolean
Overrides
System.Runtime.InteropServices.SafeHandle.IsInvalid
API Level: 3

Methods

View Source

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

Declaration
C#
Copy
protected override bool ReleaseHandle()
Returns
Type Description
System.Boolean

true if the handle is released successfully.

Overrides
System.Runtime.InteropServices.SafeHandle.ReleaseHandle()

Implements

System.IDisposable