Pointer Pointer Pointer Pointer Class

定義

重要

此 API 不符合 CLS 規範。

提供指標的包裝函式類別。Provides a wrapper class for pointers.

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

方法

Box(Void*, Type) Box(Void*, Type) Box(Void*, Type) Box(Void*, Type)

將所提供的 Unmanaged 記憶體指標和與指標關聯的型別裝至 Managed Pointer 包裝函式物件中。Boxes the supplied unmanaged memory pointer and the type associated with that pointer into a managed Pointer wrapper object. 因為值和型別被儲存,所以可以在引動過程期間從機器碼存取它們。The value and the type are saved so they can be accessed from the native code during an invocation.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
Unbox(Object) Unbox(Object) Unbox(Object) Unbox(Object)

傳回儲存的指標。Returns the stored pointer.

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

使用檔案名稱、融合記錄檔和其他的例外狀況資訊,來設定 SerializationInfo 物件。Sets the SerializationInfo object with the file name, fusion log, and additional exception information.

適用於