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 Type Initializes a new instance of the Type class.
Top

  Name Description
Public field Static Supported by the .NET Compact 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 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 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 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 Attributes Gets the attributes associated with the Type.
Public property Supported by the .NET Compact Framework BaseType Gets the type from which the current Type directly inherits.
Public property Supported by the .NET Compact 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 DeclaringType Gets the class that declares this member.
Public property Static Supported by the .NET Compact 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 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 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 IsAbstract Gets a value indicating whether the Type is abstract and must be overridden.
Public property Supported by the .NET Compact 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 IsArray Gets a value indicating whether the Type is an array.
Public property Supported by the .NET Compact 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 IsAutoLayout Gets a value indicating whether the class layout attribute AutoLayout is selected for the Type.
Public property Supported by the .NET Compact Framework IsByRef Gets a value indicating whether the Type is passed by reference.
Public property Supported by the .NET Compact 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 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 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 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 IsGenericType Gets a value indicating whether the current type is a generic type.
Public property Supported by the .NET Compact 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 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 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 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 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 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 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 IsNestedPrivate Gets a value indicating whether the Type is nested and declared private.
Public property Supported by the .NET Compact Framework IsNestedPublic Gets a value indicating whether a class is nested and declared public.
Public property Supported by the .NET Compact Framework IsNotPublic Gets a value indicating whether the Type is not declared public.
Public property Supported by the .NET Compact Framework IsPointer Gets a value indicating whether the Type is a pointer.
Public property Supported by the .NET Compact Framework IsPrimitive Gets a value indicating whether the Type is one of the primitive types.
Public property Supported by the .NET Compact Framework IsPublic Gets a value indicating whether the Type is declared public.
Public property Supported by the .NET Compact 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 IsSpecialName Gets a value indicating whether the Type has a name that requires special handling.
Public property Supported by the .NET Compact 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 IsValueType Gets a value indicating whether the Type is a value type.
Public property Supported by the .NET Compact 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 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 Module Gets the module (the DLL) in which the current Type is defined.
Public property Supported by the .NET Compact Framework Name  Gets the name of the current member.(Inherited from MemberInfo.)
Public property Supported by the .NET Compact Framework Namespace Gets the namespace of the Type.
Public property Supported by the .NET Compact 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 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 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 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 GetArrayRank Gets the number of dimensions in an Array.
Public method Supported by the .NET Compact Framework GetConstructor Overloaded. Gets a specific constructor of the current Type.
Public method Supported by the .NET Compact Framework GetConstructors Overloaded. Gets the constructors of the current Type.
Public method Supported by the .NET Compact 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 GetDefaultMembers Searches for the members defined for the current Type whose DefaultMemberAttribute is set.
Public method Supported by the .NET Compact 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 GetEvent Overloaded. Gets a specific event declared or inherited by the current Type.
Public method Supported by the .NET Compact Framework GetEvents Overloaded. Gets the events that are declared or inherited by the current Type.
Public method Supported by the .NET Compact Framework GetField Overloaded. Gets a specific field of the current Type.
Public method Supported by the .NET Compact Framework GetFields Overloaded. Gets the fields of the current Type.
Public method Supported by the .NET Compact 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 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 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 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 GetMember Overloaded. Gets the specified members of the current Type.
Public method Supported by the .NET Compact 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 GetMethod Overloaded. Gets a specific method of the current Type.
Public method Supported by the .NET Compact Framework GetMethods Overloaded. Gets the methods of the current Type.
Public method Supported by the .NET Compact Framework GetNestedType Overloaded. Gets a specific type nested within the current Type.
Public method Supported by the .NET Compact Framework GetNestedTypes Overloaded. Gets the types nested within the current Type.
Public method Supported by the .NET Compact Framework GetProperties Overloaded. Gets the properties of the current Type.
Public method Supported by the .NET Compact Framework GetProperty Overloaded. Gets a specific property of the current Type.
Public method Supported by the .NET Compact 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 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 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 InvokeMember Overloaded. Invokes a specific member of the current Type.
Public method Supported by the .NET Compact 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 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 IsInstanceOfType Determines whether the specified object is an instance of the current Type.
Public method Supported by the .NET Compact 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 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 ToString Overridden. Returns a String representing the name of the current Type.
Top

  Name Description
Protected method Supported by the .NET Compact 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 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 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 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 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 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 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 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 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 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 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 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 MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

  Name Description
Explicit interface implementation Method System.Runtime.InteropServices._Type.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers.
Explicit interface implementation Method System.Runtime.InteropServices._Type.GetTypeInfo Retrieves the type information for an object, which can then be used to get the type information for an interface.
Explicit interface implementation Method System.Runtime.InteropServices._Type.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Explicit interface implementation Method System.Runtime.InteropServices._Type.Invoke Provides access to properties and methods exposed by an object.
Top

Community Additions

ADD
Show:
© 2014 Microsoft