MarshalAsAttribute.Value 属性

定义

获取 UnmanagedType 值,数据将被作为该值封送。

public:
 property System::Runtime::InteropServices::UnmanagedType Value { System::Runtime::InteropServices::UnmanagedType get(); };
public System.Runtime.InteropServices.UnmanagedType Value { get; }
member this.Value : System.Runtime.InteropServices.UnmanagedType
Public ReadOnly Property Value As UnmanagedType

属性值

UnmanagedType

UnmanagedType 值,数据将被作为该值封送。

注解

此值用于 MarshalAsAttribute 指示如何在托管代码和非托管代码之间封送类型。 在某些情况下,可以将此字段与某些 UnmanagedType 枚举成员一起使用。 对于 CustomMarshalerByValArray,必须使用其他命名参数。

适用于