Home
Library
Learn
Downloads
Support
Community
Sign in
|
United States - English
|
|
MSDN Library
.NET Development
.NET Framework 4
.NET Framework Class Library
System.Runtime Namespaces
System.Runtime.InteropServices
StructLayoutAttribute Class
StructLayoutAttribute Fields
CharSet Field
Pack Field
Size Field
Community Content
Add code samples and tips to enhance this topic.
More...
This topic has not yet been rated
-
Rate this topic
StructLayoutAttribute Fields
.NET Framework 4
Other Versions
.NET Framework 4.5
.NET Framework 3.5
.NET Framework 3.0
.NET Framework 2.0
.NET Framework 1.1
Silverlight
The
StructLayoutAttribute
type exposes the following members.
Fields
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.
Top
See Also
Reference
StructLayoutAttribute Class
System.Runtime.InteropServices Namespace
Did you find this helpful?
Yes
No
Not accurate
Not enough depth
Need more code examples
Tell us more...
(
1500
characters remaining)
Community Content
Add
FAQ