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)

将提供的非托管内存指针和与该指针关联的类型装箱到托管 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 的浅表副本。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.

适用于