MarshalAsAttribute.SafeArrayUserDefinedSubType 字段
定义
public: Type ^ SafeArrayUserDefinedSubType;
public Type SafeArrayUserDefinedSubType;
public Type? SafeArrayUserDefinedSubType;
val mutable SafeArrayUserDefinedSubType : Type
Public SafeArrayUserDefinedSubType As 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_RECORD 。This 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.