DesignerSerializationManager.GetType(String) Method

Definition

Gets the requested type.

protected:
 virtual Type ^ GetType(System::String ^ typeName);
protected virtual Type GetType (string typeName);
protected virtual Type? GetType (string? typeName);
override this.GetType : string -> Type
Protected Overridable Function GetType (typeName As String) As Type

Parameters

typeName
String

The name of the type to retrieve.

Returns

The requested type, or null if the type cannot be resolved.

Remarks

The GetType method will search the service provider for an ITypeResolutionService and, if available, it will delegate to that service to resolve the type. If an ITypeResolutionService is not available, GetType will call the Object.GetType method.

Applies to