Export (0) Print
Expand All
Expand Minimize

Type Properties

The Type type exposes the following members.

  Name Description
Public property Assembly Gets the Assembly in which the type is declared. For generic types, gets the Assembly in which the generic type is defined.
Public property AssemblyQualifiedName Gets the assembly-qualified name of the type, which includes the name of the assembly from which this Type object was loaded.
Public property Attributes Gets the attributes associated with the Type.
Public property BaseType Gets the type from which the current Type directly inherits.
Public property ContainsGenericParameters Gets a value indicating whether the current Type object has type parameters that have not been replaced by specific types.
Public property CustomAttributes Gets a collection that contains this member's custom attributes. (Inherited from MemberInfo.)
Public property DeclaringMethod Gets a MethodBase that represents the declaring method, if the current Type represents a type parameter of a generic method.
Public property DeclaringType Gets the type that declares the current nested type or generic type parameter. (Overrides MemberInfo.DeclaringType.)
Public property Static member DefaultBinder Gets a reference to the default binder, which implements internal rules for selecting the appropriate members to be called by InvokeMember.
Public property FullName Gets the fully qualified name of the Type, including the namespace of the Type but not the assembly.
Public property GenericParameterAttributes Gets a combination of GenericParameterAttributes flags that describe the covariance and special constraints of the current generic type parameter.
Public property GenericParameterPosition Gets the position of the type parameter in the type parameter list of the generic type or method that declared the parameter, when the Type object represents a type parameter of a generic type or a generic method.
Public property GenericTypeArguments Gets an array of the generic type arguments for this type.
Public property GUID Gets the GUID associated with the Type.
Public property HasElementType Gets a value indicating whether the current Type encompasses or refers to another type; that is, whether the current Type is an array, a pointer, or is passed by reference.
Public property IsAbstract Gets a value indicating whether the Type is abstract and must be overridden.
Public property IsAnsiClass Gets a value indicating whether the string format attribute AnsiClass is selected for the Type.
Public property IsArray Gets a value indicating whether the Type is an array.
Public property IsAutoClass Gets a value indicating whether the string format attribute AutoClass is selected for the Type.
Public property IsAutoLayout Gets a value indicating whether the fields of the current type are laid out automatically by the common language runtime.
Public property IsByRef Gets a value indicating whether the Type is passed by reference.
Public property IsClass Gets a value indicating whether the Type is a class; that is, not a value type or interface.
Public property IsCOMObject Gets a value indicating whether the Type is a COM object.
Public property IsConstructedGenericType Gets a value that indicates whether this object represents a constructed generic type. You can create instances of a constructed generic type.
Public property IsContextful Gets a value indicating whether the Type can be hosted in a context.
Public property IsEnum Gets a value indicating whether the current Type represents an enumeration.
Public property IsExplicitLayout Gets a value indicating whether the fields of the current type are laid out at explicitly specified offsets.
Public property IsGenericParameter Gets a value indicating whether the current Type represents a type parameter in the definition of a generic type or method.
Public property IsGenericType Gets a value indicating whether the current type is a generic type.
Public property IsGenericTypeDefinition Gets a value indicating whether the current Type represents a generic type definition, from which other generic types can be constructed.
Public property IsImport Gets a value indicating whether the Type has a ComImportAttribute attribute applied, indicating that it was imported from a COM type library.
Public property IsInterface Gets a value indicating whether the Type is an interface; that is, not a class or a value type.
Public property IsLayoutSequential Gets a value indicating whether the fields of the current type are laid out sequentially, in the order that they were defined or emitted to the metadata.
Public property IsMarshalByRef Gets a value indicating whether the Type is marshaled by reference.
Public property IsNested Gets a value indicating whether the current Type object represents a type whose definition is nested inside the definition of another type.
Public property IsNestedAssembly Gets a value indicating whether the Type is nested and visible only within its own assembly.
Public property IsNestedFamANDAssem Gets a value indicating whether the Type is nested and visible only to classes that belong to both its own family and its own assembly.
Public property IsNestedFamily Gets a value indicating whether the Type is nested and visible only within its own family.
Public property IsNestedFamORAssem Gets a value indicating whether the Type is nested and visible only to classes that belong to either its own family or to its own assembly.
Public property IsNestedPrivate Gets a value indicating whether the Type is nested and declared private.
Public property IsNestedPublic Gets a value indicating whether a class is nested and declared public.
Public property IsNotPublic Gets a value indicating whether the Type is not declared public.
Public property IsPointer Gets a value indicating whether the Type is a pointer.
Public property IsPrimitive Gets a value indicating whether the Type is one of the primitive types.
Public property IsPublic Gets a value indicating whether the Type is declared public.
Public property IsSealed Gets a value indicating whether the Type is declared sealed.
Public property IsSecurityCritical Gets a value that indicates whether the current type is security-critical or security-safe-critical at the current trust level, and therefore can perform critical operations.
Public property IsSecuritySafeCritical Gets a value that indicates whether the current type is security-safe-critical at the current trust level; that is, whether it can perform critical operations and can be accessed by transparent code.
Public property IsSecurityTransparent Gets a value that indicates whether the current type is transparent at the current trust level, and therefore cannot perform critical operations.
Public property IsSerializable Gets a value indicating whether the Type is serializable.
Public property IsSpecialName Gets a value indicating whether the Type has a name that requires special handling.
Public property IsUnicodeClass Gets a value indicating whether the string format attribute UnicodeClass is selected for the Type.
Public property IsValueType Gets a value indicating whether the Type is a value type.
Public property IsVisible Gets a value indicating whether the Type can be accessed by code outside the assembly.
Public property MemberType Gets a MemberTypes value indicating that this member is a type or a nested type. (Overrides MemberInfo.MemberType.)
Public property MetadataToken Gets a value that identifies a metadata element. (Inherited from MemberInfo.)
Public property Module Gets the module (the DLL) in which the current Type is defined.
Public property Name Gets the name of the current member. (Inherited from MemberInfo.)
Public property Namespace Gets the namespace of the Type.
Public property ReflectedType Gets the class object that was used to obtain this member. (Overrides MemberInfo.ReflectedType.)
Public property StructLayoutAttribute Gets a StructLayoutAttribute that describes the layout of the current type.
Public property TypeHandle Gets the handle for the current Type.
Public property TypeInitializer Gets the initializer for the Type.
Public property UnderlyingSystemType Indicates the type provided by the common language runtime that represents this type.
Top
Show:
© 2014 Microsoft