Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Type Properties
Collapse the table of content
Expand the table of content

Type Properties

The Type type exposes the following members.

  Name Description
Public property Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library Attributes Gets the attributes associated with the Type.
Public property Supported by the XNA Framework Supported by Portable Class Library BaseType Gets the type from which the current Type directly inherits.
Public property Supported by the XNA Framework Supported by Portable Class Library 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 Supported by Portable Class Library DeclaringMethod Gets a MethodBase that represents the declaring method, if the current Type represents a type parameter of a generic method.
Public property Supported by the XNA Framework Supported by Portable Class Library DeclaringType Gets the type that declares the current nested type or generic type parameter. (Overrides MemberInfo.DeclaringType.)
Public property Static member Supported by the XNA Framework DefaultBinder Gets a reference to the default binder, which implements internal rules for selecting the appropriate members to be called by InvokeMember.
Public property Supported by the XNA Framework Supported by Portable Class Library FullName Gets the fully qualified name of the type, including its namespace but not its assembly.
Public property Supported by Portable Class Library GenericParameterAttributes Gets a combination of GenericParameterAttributes flags that describe the covariance and special constraints of the current generic type parameter.
Public property Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library IsAbstract Gets a value indicating whether the Type is abstract and must be overridden.
Public property Supported by the XNA Framework IsAnsiClass Gets a value indicating whether the string format attribute AnsiClass is selected for the Type.
Public property Supported by the XNA Framework Supported by Portable Class Library IsArray Gets a value that indicates whether the type is an array.
Public property Supported by the XNA Framework IsAutoClass Gets a value indicating whether the string format attribute AutoClass is selected for the Type.
Public property Supported by the XNA Framework IsAutoLayout Gets a value indicating whether the fields of the current type are laid out automatically by the common language runtime.
Public property Supported by the XNA Framework Supported by Portable Class Library IsByRef Gets a value indicating whether the Type is passed by reference.
Public property Supported by the XNA Framework Supported by Portable Class Library IsClass Gets a value indicating whether the Type is a class or a delegate; that is, not a value type or interface.
Public property Supported by the XNA Framework 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 Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library IsGenericParameter Gets a value indicating whether the current Type represents a type parameter in the definition of a generic type or method.
Public property Supported by the XNA Framework Supported by Portable Class Library IsGenericType Gets a value indicating whether the current type is a generic type.
Public property Supported by the XNA Framework Supported by Portable Class Library IsGenericTypeDefinition Gets a value indicating whether the current Type represents a generic type definition, from which other generic types can be constructed.
Public property Supported by the XNA Framework 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 Supported by the XNA Framework Supported by Portable Class Library 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 Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library IsNestedAssembly Gets a value indicating whether the Type is nested and visible only within its own assembly.
Public property Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library IsNestedFamily Gets a value indicating whether the Type is nested and visible only within its own family.
Public property Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library IsNestedPrivate Gets a value indicating whether the Type is nested and declared private.
Public property Supported by the XNA Framework Supported by Portable Class Library IsNestedPublic Gets a value indicating whether a class is nested and declared public.
Public property Supported by the XNA Framework Supported by Portable Class Library IsNotPublic Gets a value indicating whether the Type is not declared public.
Public property Supported by the XNA Framework Supported by Portable Class Library IsPointer Gets a value indicating whether the Type is a pointer.
Public property Supported by the XNA Framework Supported by Portable Class Library IsPrimitive Gets a value indicating whether the Type is one of the primitive types.
Public property Supported by the XNA Framework Supported by Portable Class Library IsPublic Gets a value indicating whether the Type is declared public.
Public property Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library IsSpecialName Gets a value indicating whether the type has a name that requires special handling.
Public property Supported by the XNA Framework IsUnicodeClass Gets a value indicating whether the string format attribute UnicodeClass is selected for the Type.
Public property Supported by the XNA Framework Supported by Portable Class Library IsValueType Gets a value indicating whether the Type is a value type.
Public property Supported by the XNA Framework Supported by Portable Class Library IsVisible Gets a value indicating whether the Type can be accessed by code outside the assembly.
Public property Supported by the XNA Framework 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 Supported by the XNA Framework Module Gets the module (the DLL) in which the current Type is defined.
Public property Supported by the XNA Framework Supported by Portable Class Library Name Gets the name of the current member. (Inherited from MemberInfo.)
Public property Supported by the XNA Framework Supported by Portable Class Library Namespace Gets the namespace of the Type.
Public property Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library TypeHandle Gets the handle for the current Type.
Public property TypeInitializer Gets the initializer for the type.
Public property Supported by the XNA Framework Supported by Portable Class Library UnderlyingSystemType Indicates the type provided by the common language runtime that represents this type.
Top
Show:
© 2015 Microsoft