AxImporter.GenerateFromTypeLibrary Method (UCOMITypeLib, Guid)

 

Generates a wrapper for an ActiveX control for use in the design-time environment.

Namespace:   System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

public string GenerateFromTypeLibrary(
	UCOMITypeLib typeLib,
	Guid clsid
)

Parameters

typeLib
Type: System.Runtime.InteropServices.UCOMITypeLib

A UCOMITypeLib that indicates the type library to generate the control from.

clsid
Type: System.Guid

The Guid for the control wrapper.

Return Value

Type: System.String

An assembly qualified name for the type of ActiveX control for which a wrapper was generated.

Exception Condition
Exception

No registered ActiveX control was found in typeLib.

.NET Framework
Available since 1.1
Return to top
Show: