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
屬性
實作

方法

名稱 Description
Box(Void*, Type)

將提供的非管理記憶體指標及其相關類型的 Box 放入一個受管理 Pointer 包裝物件。 值與型別會被儲存,以便在調用時能從原生程式碼存取。

Equals(Object)

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

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

回傳當前物件的雜湊碼。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)
Unbox(Object)

回傳儲存的指標。

明確介面實作

名稱 Description
ISerializable.GetObjectData(SerializationInfo, StreamingContext)

用檔案名稱、融合日誌及額外例外資訊設定物件。SerializationInfo

適用於