Επεξεργασία

Κοινή χρήση μέσω


MarshalAsAttribute.SizeConst Field

Definition

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