Share via


StructLayoutAttribute Members

The following tables list the members exposed by the StructLayoutAttribute type.

Public Constructors

Name Description
Public Method StructLayoutAttribute Overloaded. Initalizes a new instance of the StructLayoutAttribute class.

Public Fields

Name Description
Public Field CharSet Indicates how string data fields within a particular class should be marshaled by default — that is, as LPWSTR or as LPSTR.
Public Field Pack Controls the alignment of the data fields of a particular class or structure in memory.
Public Field Size Indicates the absolute size of a particular class or structure.

Public Properties

Name Description
Public Property Value Gets the LayoutKind value that specifies how a particular class or structure is arranged.

Public Methods

Name Description
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Remarks

Items in this namespace are for use by Microsoft® Visual Studio®. You should not try to use them in your applications.

See Also

Reference

StructLayoutAttribute Class
System.Runtime.InteropServices Namespace