Share via


StructLayoutAttribute Class

The StructLayoutAttribute class provides fields and properties you can use to control the physical layout of the data fields of a class or structure.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

Syntax

[AttributeUsageAttribute]
public sealed class StructLayoutAttribute : Attribute

Remarks

You can apply this attribute to either classes or structures.

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

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

StructLayoutAttribute Members
System.Runtime.InteropServices Namespace