Pointer 類別

定義

重要

此 API 不符合 CLS 規範。

提供指標的包裝函式類別。

public ref class Pointer sealed : System::Runtime::Serialization::ISerializable
[System.CLSCompliant(false)]
public sealed class Pointer : System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class Pointer : System.Runtime.Serialization.ISerializable
[<System.CLSCompliant(false)>]
type Pointer = class
    interface ISerializable
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type Pointer = class
    interface ISerializable
Public NotInheritable Class Pointer
Implements ISerializable
繼承
Pointer
屬性
實作

方法

Box(Void*, Type)

將所提供的 Unmanaged 記憶體指標和與指標關聯的型別裝至 Managed Pointer 包裝函式物件中。 因為值和型別被儲存,所以可以在引動過程期間從機器碼存取它們。

Equals(Object)

傳回值,這個值表示目前的 物件是否等於指定的 物件。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

傳回目前 物件的雜湊碼。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
Unbox(Object)

傳回已儲存的指標。

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

使用檔案名稱、融合記錄檔和其他的例外狀況資訊,來設定 SerializationInfo 物件。

適用於