Class BaseHandle
Definition
- Assembly:
- Tizen.NUI.dll
BaseHandle is a handle to an internal Dali resource.
C#Copypublic class BaseHandle : Element, INotifyPropertyChanged, IDisposable
- Inheritance
- Derived
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Constructors
Declaration
C#Copypublic BaseHandle()
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic BaseHandle(BaseHandle handle)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | handle | The BaseHandle instance. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Fields
Declaration
C#Copy[Obsolete("Deprecated in API9, will be removed in API11, Use Disposed")] protected bool disposed
Field Value
| Type | Description |
|---|---|
| bool |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copy[Obsolete("Deprecated in API9, will be removed in API11, Use SwigCMemOwn")] protected bool swigCMemOwn
Field Value
| Type | Description |
|---|---|
| bool |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Methods
Declaration
C#Copypublic void Dispose()
Remarks
This method release only C# side objects. If someone hold BaseHandle at Native side
the object will not be removed until native side reset the handle.
Declaration
C#Copyprotected virtual void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type | Explicit to release both managed and unmanaged resources. Implicit to release only unmanaged resources. |
Remarks
When overriding this method, you need to distinguish between explicit and implicit conditions. For explicit conditions, release both managed and unmanaged resources. For implicit conditions, only release unmanaged resources.
DoAction(string, PropertyMap)
Performs an action on this object with the given action name and attributes.
Declaration
C#Copypublic bool DoAction(string actionName, PropertyMap attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| string | actionName | The command for the action. |
| PropertyMap | attributes | The list of attributes for the action. |
Returns
| Type | Description |
|---|---|
| bool | The action is performed by the object or not. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Equals(object)
Compares the current instance with another object of the same type and returns true if they represent the same handle.
Declaration
C#Copypublic override bool Equals(object o)
Parameters
| Type | Name | Description |
|---|---|---|
| object | o | The object to compare with the current instance. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic bool EqualTo(BaseHandle rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | rhs | The baseHandle instance. |
Returns
| Type | Description |
|---|---|
| bool | True If equal. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
~BaseHandle()
Finalizes the instance of the BaseHandle class. This method implements the finalization pattern for proper disposal of resources.
Declaration
C#Copyprotected ~BaseHandle()
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |
Overrides
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic bool GetTypeInfo(TypeInfo info)
Parameters
| Type | Name | Description |
|---|---|---|
| TypeInfo | info | The type information. |
Returns
| Type | Description |
|---|---|
| bool | True If get the type info. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
GetTypeName()
Returns the type name for the Handle.
Will return an empty string if the typename does not exist. This will happen for types that
have not registered with type-registry.
Declaration
C#Copypublic string GetTypeName()
Returns
| Type | Description |
|---|---|
| string | The type name. Empty string if the typename does not exist. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic bool HasBody()
Returns
| Type | Description |
|---|---|
| bool | True If the baseHandle instance has body. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic bool IsEqual(BaseHandle rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | rhs | The baseHandle instance. |
Returns
| Type | Description |
|---|---|
| bool | True If equal. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic bool NotEqualTo(BaseHandle rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | rhs | The baseHandle instance. |
Returns
| Type | Description |
|---|---|
| bool | True If not equal. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic void Reset()
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Events
Declaration
C#Copy[Obsolete("Deprecated in API9, will be removed in API11, Use BindableObject.PropertyChanged instead.")] public event PropertyChangedEventHandler PropertySet
Event Type
| Type | Description |
|---|---|
| System.ComponentModel.PropertyChangedEventHandler |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
See Also
Operators
operator &(BaseHandle, BaseHandle)
Logical AND operator. It's possible when doing a logical AND operation, this function (opBitwiseAnd) might never be called due to short circuiting.
Declaration
C#Copypublic static BaseHandle operator &(BaseHandle x, BaseHandle y)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | x | The first BaseHandle instance. |
| BaseHandle | y | The second BaseHandle instance. |
Returns
| Type | Description |
|---|---|
| BaseHandle | Returns the first BaseHandle instance if both instances are equal; otherwise, returns null. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
operator |(BaseHandle, BaseHandle)
Logical OR operator for ||. It's possible when doing a || this function (opBitwiseOr) is never called due to short circuiting.
Declaration
C#Copypublic static BaseHandle operator |(BaseHandle x, BaseHandle y)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | x | The first BaseHandle to be compared. |
| BaseHandle | y | The second BaseHandle to be compared. |
Returns
| Type | Description |
|---|---|
| BaseHandle | A BaseHandle that contains either of the non-null bodies of the two operands. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic static bool operator ==(BaseHandle x, BaseHandle y)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | x | The first BaseHandle instance to compare. |
| BaseHandle | y | The second BaseHandle instance to compare. |
Returns
| Type | Description |
|---|---|
| bool | true if both instances are equal; otherwise false. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic static explicit operator bool(BaseHandle handle)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | handle |
Returns
| Type | Description |
|---|---|
| bool |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
operator false(BaseHandle)
Returns the bool false to indicate that an operand is false and returns true otherwise.
Declaration
C#Copypublic static bool operator false(BaseHandle handle)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | handle |
Returns
| Type | Description |
|---|---|
| bool |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
operator !=(BaseHandle, BaseHandle)
Inequality operator. Returns true if the operands are not equal, false otherwise. Returns true if either operand is null.
Declaration
C#Copypublic static bool operator !=(BaseHandle x, BaseHandle y)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | x | The first BaseHandle instance to compare. |
| BaseHandle | y | The second BaseHandle instance to compare. |
Returns
| Type | Description |
|---|---|
| bool | True if the operands are not equal, false otherwise. Returns true if either operand is null. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
Declaration
C#Copypublic static bool operator !(BaseHandle x)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | x | The BaseHandle instance to check. |
Returns
| Type | Description |
|---|---|
| bool | True if the handle is null or has no body; otherwise, false. |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.
operator true(BaseHandle)
Returns the bool value true to indicate that an operand is true and returns false otherwise.
Declaration
C#Copypublic static bool operator true(BaseHandle handle)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseHandle | handle |
Returns
| Type | Description |
|---|---|
| bool |
Remarks
Internal Dali resources with BaseHandle has reference count internally.
And Dali resources will release the object only if reference count become zero.
It mean, even we call Dispose(), the reousrce will not be released if some native has reference count.