Struct NativeHandleIntPtr
ネイティブハンドル型
Implements
Inherited Members
Namespace: CriWare.InteropHelpers
Assembly: CriWare.CriBase.dll
Syntax
public struct NativeHandleIntPtr : IEquatable<NativeHandleIntPtr>Remarks
CRIWAREのオブジェクトインスタンスを取り扱うハンドルを表現する構造体です。 各ネイティブラッパーオブジェクト内で利用されます。
Properties
IsAvailable
ハンドルの有効状態
Declaration
public bool IsAvailable { get; }Property Value
| Type | Description | 
|---|---|
| bool | 
Remarks
CRIWAREのオブジェクトでは、マネージドオブジェクトが存在する場合でも内部のネイティブリソースが破棄済みの場合があります。 ネイティブリソースが破棄されている場合、本プロパティはfalseを返します。
IsDestroyable
リソース破棄を実行可能か否か
Declaration
public bool IsDestroyable { get; }Property Value
| Type | Description | 
|---|---|
| bool | 
Remarks
CRIWAREのネイティブリソースについて、 暗黙的に確保されたリソース場合など明示的な破棄が許されていないリソースが存在します。 明示的な破棄が許されていない場合、本プロパティはfalseを返します。 IDisposableを実装した各CRIWAREオブジェクトのDispose()メソッド内では本プロパティに従ったハンドリングを行っているため、 破棄の呼び出し前に本プロパティを確認する必要はありません。
Methods
Equals(NativeHandleIntPtr)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(NativeHandleIntPtr other)Parameters
| Type | Name | Description | 
|---|---|---|
| NativeHandleIntPtr | other | An object to compare with this object. | 
Returns
| Type | Description | 
|---|---|
| bool | true if the current object is equal to the  | 
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| object | obj | The object to compare with the current instance. | 
Returns
| Type | Description | 
|---|---|
| bool | true if  | 
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()Returns
| Type | Description | 
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |