TypeAttributes Enumeration
Specifies type attributes.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
[Visual Basic] <Flags> <Serializable> Public Enum TypeAttributes [C#] [Flags] [Serializable] public enum TypeAttributes [C++] [Flags] [Serializable] __value public enum TypeAttributes [JScript] public Flags Serializable enum TypeAttributes
Remarks
The members of this enumerator class match the CorTypeAttr enumerator as defined in the corhdr.h file.
Members
| Member name | Description | Value |
|---|---|---|
| Abstract Supported by the .NET Compact Framework. | Specifies that the type is abstract. | 128 |
| AnsiClass Supported by the .NET Compact Framework. | LPTSTR is interpreted as ANSI. | 0 |
| AutoClass Supported by the .NET Compact Framework. | LPTSTR is interpreted automatically. | 131072 |
| AutoLayout Supported by the .NET Compact Framework. | Specifies that class fields are automatically laid out by the common language runtime. | 0 |
| BeforeFieldInit Supported by the .NET Compact Framework. | Specifies that calling static methods of the type does not force the system to initialize the type. | 1048576 |
| Class Supported by the .NET Compact Framework. | Specifies that the type is a class. | 0 |
| ClassSemanticsMask Supported by the .NET Compact Framework. | Specifies class semantics information; the current class is contextful (else agile). | 32 |
| ExplicitLayout Supported by the .NET Compact Framework. | Specifies that class fields are laid out at the specified offsets. | 16 |
| HasSecurity Supported by the .NET Compact Framework. | Type has security associate with it. | 262144 |
| Import Supported by the .NET Compact Framework. | Specifies that the class or interface is imported from another module. | 4096 |
| Interface Supported by the .NET Compact Framework. | Specifies that the type is an interface. | 32 |
| LayoutMask Supported by the .NET Compact Framework. | Specifies class layout information. | 24 |
| NestedAssembly Supported by the .NET Compact Framework. | Specifies that the class is nested with assembly visibility, and is thus accessible only by methods within its assembly. | 5 |
| NestedFamANDAssem Supported by the .NET Compact Framework. | Specifies that the class is nested with assembly and family visibility, and is thus accessible only by methods lying in the intersection of its family and assembly. | 6 |
| NestedFamily Supported by the .NET Compact Framework. | Specifies that the class is nested with family visibility, and is thus accessible only by methods within its own type and any subtypes. | 4 |
| NestedFamORAssem Supported by the .NET Compact Framework. | Specifies that the class is nested with family or assembly visibility, and is thus accessible only by methods lying in the union of its family and assembly. | 7 |
| NestedPrivate Supported by the .NET Compact Framework. | Specifies that the class is nested with private visibility. | 3 |
| NestedPublic Supported by the .NET Compact Framework. | Specifies that the class is nested with public visibility. | 2 |
| NotPublic Supported by the .NET Compact Framework. | Specifies that the class is not public. | 0 |
| Public Supported by the .NET Compact Framework. | Specifies that the class is public. | 1 |
| ReservedMask Supported by the .NET Compact Framework. | Attributes reserved for runtime use. | 264192 |
| RTSpecialName Supported by the .NET Compact Framework. | Runtime should check name encoding. | 2048 |
| Sealed Supported by the .NET Compact Framework. | Specifies that the class is concrete and cannot be extended. | 256 |
| SequentialLayout Supported by the .NET Compact Framework. | Specifies that class fields are laid out sequentially, in the order that the fields were emitted to the metadata. | 8 |
| Serializable Supported by the .NET Compact Framework. | Specifies that the class can be serialized. | 8192 |
| SpecialName Supported by the .NET Compact Framework. | Specifies that the class is special in a way denoted by the name. | 1024 |
| StringFormatMask Supported by the .NET Compact Framework. | Used to retrieve string information for native interoperability. | 196608 |
| UnicodeClass Supported by the .NET Compact Framework. | LPTSTR is interpreted as UNICODE. | 65536 |
| VisibilityMask Supported by the .NET Compact Framework. | Specifies type visibility information. | 7 |
Requirements
Namespace: System.Reflection
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: Mscorlib (in Mscorlib.dll)