Name

StructLayoutAttribute

Synopsis

Use this attribute to control how the members of a class are laid out in memory. See LayoutKind for the possible values you can use with this attribute.

Public NotInheritable Class StructLayoutAttribute : Inherits Attribute
' Public Constructors
   Public Sub New( ByVal layoutKind As Short) 
   Public Sub New( ByVal layoutKind As LayoutKind) 
' Public Instance Fields
   Public CharSet As CharSet  
   Public Pack As Integer  
   Public Size As Integer  
' Public Instance Properties
   Public ReadOnly Property Value As LayoutKind  
End Class

Hierarchy

System.ObjectSystem.Attribute StructLayoutAttribute

Valid On

Class, Struct

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.