Export (0) Print
Expand All

Type Methods

The methods of the Type class are listed here. For a complete list of Type class members, see the Type Members topic.

Public Methods

public methodEquals

Supported by the .NET Compact Framework.

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 methodFindInterfaces Returns an array of Type objects representing a filtered list of interfaces implemented or inherited by the current Type.
public methodFindMembers Returns a filtered array of MemberInfo objects of the specified member type.
public methodGetArrayRank Gets the number of dimensions in an Array.
public methodGetConstructor

Supported by the .NET Compact Framework.

Overloaded. Gets a specific constructor of the current Type.
public methodGetConstructors

Supported by the .NET Compact Framework.

Overloaded. Gets the constructors of the current Type.
public methodGetCustomAttributes (inherited from MemberInfo)

Supported by the .NET Compact Framework.

Overloaded. When overridden in a derived class, returns all attributes defined on this member.
public methodGetDefaultMembers

Supported by the .NET Compact Framework.

Searches for the members defined for the current Type whose DefaultMemberAttribute is set.
public methodGetElementType

Supported by the .NET Compact Framework.

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 methodGetEvent

Supported by the .NET Compact Framework.

Overloaded. Gets a specific event declared or inherited by the current Type.
public methodGetEvents

Supported by the .NET Compact Framework.

Overloaded. Gets the events that are declared or inherited by the current Type.
public methodGetField

Supported by the .NET Compact Framework.

Overloaded. Gets a specific field of the current Type.
public methodGetFields

Supported by the .NET Compact Framework.

Overloaded. Gets the fields of the current Type.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Returns the hash code for this instance.
public methodGetInterface Overloaded. Gets a specific interface implemented or inherited by the current Type.
public methodGetInterfaceMap Returns an interface mapping for the specified interface type.
public methodGetInterfaces

Supported by the .NET Compact Framework.

When overridden in a derived class, gets all the interfaces implemented or inherited by the current Type.
public methodGetMember

Supported by the .NET Compact Framework.

Overloaded. Gets the specified members of the current Type.
public methodGetMembers

Supported by the .NET Compact Framework.

Overloaded. Gets the members (properties, methods, fields, events, and so on) of the current Type.
public methodGetMethod

Supported by the .NET Compact Framework.

Overloaded. Gets a specific method of the current Type.
public methodGetMethods

Supported by the .NET Compact Framework.

Overloaded. Gets the methods of the current Type.
public methodGetNestedType

Supported by the .NET Compact Framework.

Overloaded. Gets a specific type nested within the current Type.
public methodGetNestedTypes

Supported by the .NET Compact Framework.

Overloaded. Gets the types nested within the current Type.
public methodGetProperties

Supported by the .NET Compact Framework.

Overloaded. Gets the properties of the current Type.
public methodGetProperty

Supported by the .NET Compact Framework.

Overloaded. Gets a specific property of the current Type.
public methodstatic (Shared in Visual Basic)GetType

Supported by the .NET Compact Framework.

Overloaded. Gets the Type with the specified name.
public methodstatic (Shared in Visual Basic)GetTypeArray Gets the types of the objects in the specified array.
public methodstatic (Shared in Visual Basic)GetTypeCode

Supported by the .NET Compact Framework.

Gets the underlying type code of the specified Type.
public methodstatic (Shared in Visual Basic)GetTypeFromCLSID Overloaded. Gets the type associated with the specified class identifier (CLSID).
public methodstatic (Shared in Visual Basic)GetTypeFromHandle

Supported by the .NET Compact Framework.

Gets the type referenced by the specified type handle.
public methodstatic (Shared in Visual Basic)GetTypeFromProgID Overloaded. Gets the type associated with the specified program identifier (ProgID).
public methodstatic (Shared in Visual Basic)GetTypeHandle Gets the handle for the Type of a specified object.
public methodInvokeMember

Supported by the .NET Compact Framework.

Overloaded. Invokes a specific member of the current Type.
public methodIsAssignableFrom

Supported by the .NET Compact Framework.

Determines whether an instance of the current Type can be assigned from an instance of the specified Type.
public methodIsDefined (inherited from MemberInfo)

Supported by the .NET Compact Framework.

When overridden in a derived class, indicates whether one or more instance of attributeType is defined on this member.
public methodIsInstanceOfType

Supported by the .NET Compact Framework.

Determines whether the specified object is an instance of the current Type.
public methodIsSubclassOf

Supported by the .NET Compact Framework.

Determines whether the current Type derives from the specified Type.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Returns a String representing the name of the current Type.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodGetAttributeFlagsImpl

Supported by the .NET Compact Framework.

When overridden in a derived class, implements the Attributes property and gets a bitmask indicating the attributes associated with the Type.
protected methodGetConstructorImpl

Supported by the .NET Compact Framework.

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 methodGetMethodImpl

Supported by the .NET Compact Framework.

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 methodGetPropertyImpl

Supported by the .NET Compact Framework.

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 methodHasElementTypeImpl

Supported by the .NET Compact Framework.

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 methodIsArrayImpl

Supported by the .NET Compact Framework.

When overridden in a derived class, implements the IsArray property and determines whether the Type is an array.
protected methodIsByRefImpl

Supported by the .NET Compact Framework.

When overridden in a derived class, implements the IsByRef property and determines whether the Type is passed by reference.
protected methodIsCOMObjectImpl

Supported by the .NET Compact Framework.

When overridden in a derived class, implements the IsCOMObject property and determines whether the Type is a COM object.
protected methodIsContextfulImpl Implements the IsContextful property and determines whether the Type can be hosted in a context.
protected methodIsMarshalByRefImpl Implements the IsMarshalByRef property and determines whether the Type is marshalled by reference.
protected methodIsPointerImpl

Supported by the .NET Compact Framework.

When overridden in a derived class, implements the IsPointer property and determines whether the Type is a pointer.
protected methodIsPrimitiveImpl

Supported by the .NET Compact Framework.

When overridden in a derived class, implements the IsPrimitive property and determines whether the Type is one of the primitive types.
protected methodIsValueTypeImpl

Supported by the .NET Compact Framework.

Implements the IsValueType property and determines whether the Type is a value type; that is, not a class or an interface.
protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Type Class | System Namespace

Show:
© 2014 Microsoft