TypeToTypeInfoMarshaler.MarshalNativeToManaged(IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Marshals an object from unmanaged code to managed code.
public:
override System::Object ^ MarshalNativeToManaged(IntPtr pNativeData);
public:
virtual System::Object ^ MarshalNativeToManaged(IntPtr pNativeData);
public override object MarshalNativeToManaged (IntPtr pNativeData);
public virtual object MarshalNativeToManaged (IntPtr pNativeData);
abstract member MarshalNativeToManaged : nativeint -> obj
override this.MarshalNativeToManaged : nativeint -> obj
Public Overrides Function MarshalNativeToManaged (pNativeData As IntPtr) As Object
Public Overridable Function MarshalNativeToManaged (pNativeData As IntPtr) As Object
Parameters
- pNativeData
-
IntPtr
nativeint
A pointer to the unmanaged object to be converted.
Returns
A managed object.
Implements
Exceptions
pNativeData
is null
.
Remarks
The CLR calls this method with the specified pointer to an unmanaged object to convert that object from unmanaged code to managed code, and returns a managed object representing the managed view of the unmanaged data.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.