MarshalAsAttribute.SafeArraySubType Field
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.
Indicates the element type of the SafeArray.
public: System::Runtime::InteropServices::VarEnum SafeArraySubType;
public System.Runtime.InteropServices.VarEnum SafeArraySubType;
val mutable SafeArraySubType : System.Runtime.InteropServices.VarEnum
Public SafeArraySubType As VarEnum
Field Value
Remarks
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. If a type is not specified, the managed element type's default type (if passed as a VARIANT) is used. For example, the SafeArraySubType
for an int
array in COM is VT_I4. For additional information, see Default Marshaling for Arrays.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru