BCGControlBar Library for .NET
IsInstanceOfType(Object,String,Boolean) Method




The object to compare with the specified Type.

The name of type to compare with the object.
if true, only specified object should be compared, otherwise, all its parent objects should be compared.
Determines whether the specified object is an instance of the specified type or it is a descendant of the object of the specified type.
Syntax
'Declaration
 
Public Overloads Shared Function IsInstanceOfType( _
   ByVal obj As Object, _
   ByVal typeName As String, _
   ByVal immediate As Boolean _
) As Boolean
'Usage
 
Dim obj As Object
Dim typeName As String
Dim immediate As Boolean
Dim value As Boolean
 
value = GlobalUtils.IsInstanceOfType(obj, typeName, immediate)
public static bool IsInstanceOfType( 
   object obj,
   string typeName,
   bool immediate
)
public: static bool IsInstanceOfType( 
   Object* obj,
   string* typeName,
   bool immediate
) 
public:
static bool IsInstanceOfType( 
   Object^ obj,
   String^ typeName,
   bool immediate
) 

Parameters

obj

The object to compare with the specified Type.

typeName
The name of type to compare with the object.
immediate
if true, only specified object should be compared, otherwise, all its parent objects should be compared.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GlobalUtils Class
GlobalUtils Members
Overload List

Send Feedback