This documentation is archived and is not being maintained.

MarshalAsAttribute.SizeConst Field

Indicates the number of elements in the fixed-length array or the number of characters (not bytes) in a string to import.

[Visual Basic]
Public SizeConst As Integer
[C#]
public int SizeConst;
[C++]
public: int SizeConst;
[JScript]
public var SizeConst : int;

Remarks

This field is required for the ByValArray and ByValTStr members of the System.Runtime.InteropServices.UnmanagedType enumeration. For additional information, see Default Marshaling for Arrays.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

MarshalAsAttribute Class | MarshalAsAttribute Members | System.Runtime.InteropServices Namespace | UnmanagedType

Show: