Export (0) Print
Expand All

TypeDescriptionProvider.GetReflectionType Method (Object)

Performs normal reflection against the given object.

Namespace: System.ComponentModel
Assembly: System (in system.dll)

public Type GetReflectionType (
	Object instance
)
public Type GetReflectionType (
	Object instance
)
public function GetReflectionType (
	instance : Object
) : Type
Not applicable.

Parameters

instance

An instance of the type (should not be a null reference (Nothing in Visual Basic)).

Return Value

A Type.

Exception typeCondition

ArgumentNullException

instance is a null reference (Nothing in Visual Basic).

The GetReflectionType method is a lower-level version of the GetTypeDescriptor method. If no custom type descriptor can be located for an object, GetReflectionType is called to perform normal reflection against the object.

Use this method overload if you have called a type descriptor member that uses an instance instead of a type.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft