Constable Authorization Engine 2.0 BETA

Context.GetTypeInfo Method (Type)

[This is preliminary documentation and subject to change.]

Gets a TypeInfo object describing the given type.

[Visual Basic]
Overloads Public Shared Function GetTypeInfo( _
   ByVal type As Type _
) As TypeInfo
[C#]
public static TypeInfo GetTypeInfo(
   Type type
);

Parameters

type
The requested type.

Return Value

A reference to a TypeInfo object describing the requested type.

Remarks

If a TypeInfo object for the requested type isn't already registered, the implementation will register it automatically by examining the TypeInfoAttribute attribute associated with the type. If the type doesn't have the TypeInfoAttribute attribute applied to it, a default TypeInfo object is created and registered for the type automatically. This method always returns a valid TypeInfo object and it never returns a null reference (Nothing in Visual Basic). You can safely use the method like this:

[C#]
this.PictureBox1.Image = Context.GetTypeInfo(typeof(Form)).VisualInfo.SmallImage;
[Visual Basic]
Me.PictureBox1.Image = Context.GetTypeInfo(gettype(Form)).VisualInfo.SmallImage

See Also

Context Class | LaMarvin.Design Namespace | Context.GetTypeInfo Overload List