This documentation is archived and is not being maintained.
StructLayoutAttribute Fields
.NET Framework (current version)
Namespace:
System.Runtime.InteropServicesAssembly:
mscorlib (in mscorlib.dll)
| Name | Description |
|---|
 | CharSet | Indicates whether string data fields within the class should be marshaled as LPWSTR or LPSTR by default. |
 | Pack | Controls the alignment of data fields of a class or structure in memory. |
 | Size | Indicates the absolute size of the class or structure. |
Return to top