MarshalAsAttribute.SafeArraySubType Campo
Definizione
public: System::Runtime::InteropServices::VarEnum SafeArraySubType;
public System.Runtime.InteropServices.VarEnum SafeArraySubType;
val mutable SafeArraySubType : System.Runtime.InteropServices.VarEnum
Public SafeArraySubType As VarEnum
Valore del campo
Commenti
È possibile impostare questo campo su un valore dell' System.Runtime.InteropServices.VarEnum enumerazione per specificare il tipo degli elementi della matrice sicura.You can set this field to a value from the System.Runtime.InteropServices.VarEnum enumeration to specify the type of the safe array's elements. Se non si specifica un tipo, viene usato il tipo predefinito del tipo di elemento gestito, se passato come VARIANT.If a type is not specified, the managed element type's default type (if passed as a VARIANT) is used. Ad esempio, SafeArraySubType
per una int
matrice in com è VT_I4 .For example, the SafeArraySubType
for an int
array in COM is VT_I4. Per ulteriori informazioni, vedere marshalling predefinito per le matrici.For additional information, see Default Marshaling for Arrays.