MarshalAsAttribute.SafeArrayUserDefinedSubType 字段

定义

指示用户定义的 SafeArray 元素类型。Indicates the user-defined element type of the SafeArray.

public: Type ^ SafeArrayUserDefinedSubType;
public Type SafeArrayUserDefinedSubType;
public Type? SafeArrayUserDefinedSubType;
val mutable SafeArrayUserDefinedSubType : Type
Public SafeArrayUserDefinedSubType As Type 

字段值

Type

注解

使用自定义类型初始化此字段,以使的元素能够 SAFEARRAY 成功封送。Initialize this field with your custom type to enable the elements of the SAFEARRAY to be marshaled successfully. 仅当 MarshalAsAttribute.SafeArraySubType 为、或时,才需要此字段 VarEnum.VT_UNKNOWN VarEnum.VT_DISPATCH VarEnum.VT_RECORDThis field is only needed when the MarshalAsAttribute.SafeArraySubType is either VarEnum.VT_UNKNOWN, VarEnum.VT_DISPATCH, or VarEnum.VT_RECORD. 有关其他信息,请参阅 数组的默认封送处理For additional information, see Default Marshaling for Arrays.

适用于

另请参阅