MarshalAsAttribute.SizeConst 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 number of elements in the fixed-length array or the number of characters (not bytes) in a string to import.
public: int SizeConst;
public int SizeConst;
val mutable SizeConst : int
Public SizeConst As Integer
Field Value
Remarks
This field is required for the ByValArray and ByValTStr members of the System.Runtime.InteropServices.UnmanagedType enumeration. Because the compressed format of the metadata is limited to 0x1FFFFFFF, the range of allowed values for SizeConst are (>= 0 and <= 0x1FFFFFFF).
For additional information, see Default Marshaling for Arrays.
Applies to
See also
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про