Export (0) Print
Expand All

Type Members

Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.

The following tables list the members exposed by the Type type.

  Name Description
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Type Initializes a new instance of the Type class.
Top

  Name Description
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework Delimiter Separates names in the namespace of the Type. This field is read-only.
Public field Static EmptyTypes Represents an empty array of type Type. This field is read-only.
Public field Static FilterAttribute Represents the member filter used on attributes. This field is read-only.
Public field Static FilterName Represents the case-sensitive member filter used on names. This field is read-only.
Public field Static FilterNameIgnoreCase Represents the case-insensitive member filter used on names. This field is read-only.
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework Missing Represents a missing value in the Type information. This field is read-only.
Top

  Name Description
Public property Supported by the .NET Compact Framework Supported by the XNA Framework 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 .NET Compact Framework Supported by the XNA Framework AssemblyQualifiedName Gets the assembly-qualified name of the Type, which includes the name of the assembly from which the Type was loaded.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Attributes Gets the attributes associated with the Type.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework BaseType Gets the type from which the current Type directly inherits.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework ContainsGenericParameters Gets a value indicating whether the current Type object has type parameters that have not been replaced by specific types.
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 Supported by the .NET Compact Framework Supported by the XNA Framework DeclaringType Gets the type that declares the current nested type or generic type parameter.
Public property Static Supported by the .NET Compact Framework 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 .NET Compact Framework Supported by the XNA Framework 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 GUID Gets the GUID associated with the Type.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework 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 .NET Compact Framework Supported by the XNA Framework IsAbstract Gets a value indicating whether the Type is abstract and must be overridden.
Public property Supported by the .NET Compact Framework 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 .NET Compact Framework Supported by the XNA Framework IsArray Gets a value indicating whether the Type is an array.
Public property Supported by the .NET Compact Framework 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 .NET Compact Framework Supported by the XNA Framework IsAutoLayout Gets a value indicating whether the class layout attribute AutoLayout is selected for the Type.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsByRef Gets a value indicating whether the Type is passed by reference.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsClass Gets a value indicating whether the Type is a class; that is, not a value type or interface.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsCOMObject Gets a value indicating whether the Type is a COM object.
Public property IsContextful Gets a value indicating whether the Type can be hosted in a context.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsEnum Gets a value indicating whether the current Type represents an enumeration.
Public property IsExplicitLayout Gets a value indicating whether the class layout attribute ExplicitLayout is selected for the Type.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework 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 .NET Compact Framework Supported by the XNA Framework IsGenericType Gets a value indicating whether the current type is a generic type.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework 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 .NET Compact Framework 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 .NET Compact Framework Supported by the XNA Framework 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 class layout attribute SequentialLayout is selected for the Type.
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 Supported by the .NET Compact Framework Supported by the XNA Framework IsNestedAssembly Gets a value indicating whether the Type is nested and visible only within its own assembly.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework 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 .NET Compact Framework Supported by the XNA Framework IsNestedFamily Gets a value indicating whether the Type is nested and visible only within its own family.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework 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 .NET Compact Framework Supported by the XNA Framework IsNestedPrivate Gets a value indicating whether the Type is nested and declared private.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsNestedPublic Gets a value indicating whether a class is nested and declared public.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsNotPublic Gets a value indicating whether the Type is not declared public.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsPointer Gets a value indicating whether the Type is a pointer.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsPrimitive Gets a value indicating whether the Type is one of the primitive types.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsPublic Gets a value indicating whether the Type is declared public.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsSealed Gets a value indicating whether the Type is declared sealed.
Public property IsSerializable Gets a value indicating whether the Type is serializable.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsSpecialName Gets a value indicating whether the Type has a name that requires special handling.
Public property Supported by the .NET Compact Framework 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 .NET Compact Framework Supported by the XNA Framework IsValueType Gets a value indicating whether the Type is a value type.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsVisible Gets a value indicating whether the Type can be accessed by code outside the assembly.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework MemberType Gets a MemberTypes value indicating that this member is a type or a nested type.
Public property MetadataToken  Gets a value that identifies a metadata element.(inherited from MemberInfo)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Module Gets the module (the DLL) in which the current Type is defined.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Name  Gets the name of the current member.(inherited from MemberInfo)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Namespace Gets the namespace of the Type.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework ReflectedType Gets the class object that was used to obtain this member.
Public property StructLayoutAttribute Gets a StructLayoutAttribute that describes the layout of the current type.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework TypeHandle Gets the handle for the current Type.
Public property TypeInitializer Gets the initializer for the Type.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework UnderlyingSystemType Indicates the type provided by the common language runtime that represents this type.
Top

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Overloaded. Overridden. Determines if the underlying system type of the current Type is the same as the underlying system type of the specified Object or Type.
Public method FindInterfaces Returns an array of Type objects representing a filtered list of interfaces implemented or inherited by the current Type.
Public method FindMembers Returns a filtered array of MemberInfo objects of the specified member type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetArrayRank Gets the number of dimensions in an Array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetConstructor Overloaded. Gets a specific constructor of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetConstructors Overloaded. Gets the constructors of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetCustomAttributes  Overloaded. When overridden in a derived class, returns all attributes applied to this member. (inherited from MemberInfo)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetDefaultMembers Searches for the members defined for the current Type whose DefaultMemberAttribute is set.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetElementType When overridden in a derived class, returns the Type of the object encompassed or referred to by the current array, pointer or reference type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetEvent Overloaded. Gets a specific event declared or inherited by the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetEvents Overloaded. Gets the events that are declared or inherited by the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetField Overloaded. Gets a specific field of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetFields Overloaded. Gets the fields of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetGenericArguments Returns an array of Type objects that represent the type arguments of a generic type or the type parameters of a generic type definition.
Public method GetGenericParameterConstraints Returns an array of Type objects that represent the constraints on the current generic type parameter.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetGenericTypeDefinition Returns a Type object that represents a generic type definition from which the current generic type can be constructed.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Overridden. Returns the hash code for this instance.
Public method GetInterface Overloaded. Gets a specific interface implemented or inherited by the current Type.
Public method GetInterfaceMap Returns an interface mapping for the specified interface type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetInterfaces When overridden in a derived class, gets all the interfaces implemented or inherited by the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMember Overloaded. Gets the specified members of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMembers Overloaded. Gets the members (properties, methods, fields, events, and so on) of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMethod Overloaded. Gets a specific method of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMethods Overloaded. Gets the methods of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetNestedType Overloaded. Gets a specific type nested within the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetNestedTypes Overloaded. Gets the types nested within the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetProperties Overloaded. Gets the properties of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetProperty Overloaded. Gets a specific property of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Overloaded. Gets a Type object that represents the specified type.
Public method Static GetTypeArray Gets the types of the objects in the specified array.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetTypeCode Gets the underlying type code of the specified Type.
Public method Static Supported by the .NET Compact Framework GetTypeFromCLSID Overloaded. Gets the type associated with the specified class identifier (CLSID).
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetTypeFromHandle Gets the type referenced by the specified type handle.
Public method Static Supported by the .NET Compact Framework GetTypeFromProgID Overloaded. Gets the type associated with the specified program identifier (ProgID).
Public method Static GetTypeHandle Gets the handle for the Type of a specified object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework InvokeMember Overloaded. Invokes a specific member of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsAssignableFrom Determines whether an instance of the current Type can be assigned from an instance of the specified Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsDefined  When overridden in a derived class, indicates whether one or more instance of attributeType is applied to this member. (inherited from MemberInfo)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsInstanceOfType Determines whether the specified object is an instance of the current Type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsSubclassOf Determines whether the class represented by the current Type derives from the class represented by the specified Type.
Public method MakeArrayType Overloaded. Returns a Type object that represents an array of the current type.
Public method MakeByRefType Returns a Type object that represents the current type when passed as a ref parameter (ByRef parameter in Visual Basic).
Public method Supported by the .NET Compact Framework Supported by the XNA Framework MakeGenericType Substitutes the elements of an array of types for the type parameters of the current generic type definition and returns a Type object representing the resulting constructed type.
Public method MakePointerType Returns a Type object that represents a pointer to the current type.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static ReflectionOnlyGetType Gets the Type with the specified name, specifying whether to perform a case-sensitive search and whether to throw an exception if the type is not found. The type is loaded for reflection only, not for execution.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Overridden. Returns a String representing the name of the current Type.
Top

  Name Description
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework GetAttributeFlagsImpl When overridden in a derived class, implements the Attributes property and gets a bitmask indicating the attributes associated with the Type.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework GetConstructorImpl When overridden in a derived class, searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework GetMethodImpl When overridden in a derived class, searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework GetPropertyImpl When overridden in a derived class, searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework HasElementTypeImpl When overridden in a derived class, implements the HasElementType property and determines 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.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsArrayImpl When overridden in a derived class, implements the IsArray property and determines whether the Type is an array.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsByRefImpl When overridden in a derived class, implements the IsByRef property and determines whether the Type is passed by reference.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsCOMObjectImpl When overridden in a derived class, implements the IsCOMObject property and determines whether the Type is a COM object.
Protected method IsContextfulImpl Implements the IsContextful property and determines whether the Type can be hosted in a context.
Protected method IsMarshalByRefImpl Implements the IsMarshalByRef property and determines whether the Type is marshaled by reference.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsPointerImpl When overridden in a derived class, implements the IsPointer property and determines whether the Type is a pointer.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsPrimitiveImpl When overridden in a derived class, implements the IsPrimitive property and determines whether the Type is one of the primitive types.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework IsValueTypeImpl Implements the IsValueType property and determines whether the Type is a value type; that is, not a class or an interface.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft