CRIWARE for C#
Search Results for

    Show / Hide Table of Contents

    Struct NativeHandleIntPtr

    ネイティブハンドル型

    Implements
    IEquatable<NativeHandleIntPtr>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 other parameter; otherwise, false.

    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 obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    ValueType.Equals(object)

    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.

    Overrides
    ValueType.GetHashCode()

    Implements

    IEquatable<T>
    In this article
    Back to top Generated by DocFX