Name

TypeAttributes

Synopsis

These attributes can be applied to a type. A type is either a class or interface, so either Class or Interface must be set. Most of the modifiers share the same keywords with C# and VB.NET, so they are easy to understand. The values prefixed with Nested indicate a class that is nested as well as its visibility.

Public Enum TypeAttributes
                  Class = &H000000000
                  AutoLayout = &H000000000
                  AnsiClass = &H000000000
                  NotPublic = &H000000000
                  Public = &H000000001
                  NestedPublic = &H000000002
                  NestedPrivate = &H000000003
                  NestedFamily = &H000000004
                  NestedAssembly = &H000000005
                  NestedFamANDAssem = &H000000006
                  VisibilityMask = &H000000007
                  NestedFamORAssem = &H000000007
                  SequentialLayout = &H000000008
                  ExplicitLayout = &H000000010
                  LayoutMask = &H000000018
                  Interface = &H000000020
                  ClassSemanticsMask = &H000000020
                  Abstract = &H000000080
                  Sealed = &H000000100
                  SpecialName = &H000000400
                  RTSpecialName = &H000000800
                  Import = &H000001000
                  Serializable = &H000002000
                  UnicodeClass = &H000010000
                  AutoClass = &H000020000
                  StringFormatMask = &H000030000
                  HasSecurity = &H000040000
                  ReservedMask = &H000040800
                  BeforeFieldInit = &H000100000
End Enum

Hierarchy

System.ObjectSystem.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) TypeAttributes

Returned By

System.Type.{Attributes, GetAttributeFlagsImpl()}

Passed To

System.Reflection.Emit.ModuleBuilder.{DefineEnum(), DefineType()}, System.Reflection.Emit.TypeBuilder.DefineNestedType()

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.