AxImporter.GenerateFromTypeLibrary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a wrapper for an ActiveX control for use in the design-time environment.
Overloads
GenerateFromTypeLibrary(UCOMITypeLib) |
Generates a wrapper for an ActiveX control for use in the design-time environment. |
GenerateFromTypeLibrary(UCOMITypeLib, Guid) |
Generates a wrapper for an ActiveX control for use in the design-time environment. |
GenerateFromTypeLibrary(UCOMITypeLib)
Generates a wrapper for an ActiveX control for use in the design-time environment.
public:
System::String ^ GenerateFromTypeLibrary(System::Runtime::InteropServices::UCOMITypeLib ^ typeLib);
public string GenerateFromTypeLibrary (System.Runtime.InteropServices.UCOMITypeLib typeLib);
member this.GenerateFromTypeLibrary : System.Runtime.InteropServices.UCOMITypeLib -> string
Public Function GenerateFromTypeLibrary (typeLib As UCOMITypeLib) As String
Parameters
- typeLib
- UCOMITypeLib
A UCOMITypeLib that indicates the type library to generate the control from.
Returns
An assembly qualified name for the type of ActiveX control for which a wrapper was generated.
Exceptions
No registered ActiveX control was found in typeLib
.
See also
Applies to
GenerateFromTypeLibrary(UCOMITypeLib, Guid)
Generates a wrapper for an ActiveX control for use in the design-time environment.
public:
System::String ^ GenerateFromTypeLibrary(System::Runtime::InteropServices::UCOMITypeLib ^ typeLib, Guid clsid);
public string GenerateFromTypeLibrary (System.Runtime.InteropServices.UCOMITypeLib typeLib, Guid clsid);
member this.GenerateFromTypeLibrary : System.Runtime.InteropServices.UCOMITypeLib * Guid -> string
Public Function GenerateFromTypeLibrary (typeLib As UCOMITypeLib, clsid As Guid) As String
Parameters
- typeLib
- UCOMITypeLib
A UCOMITypeLib that indicates the type library to generate the control from.
Returns
An assembly qualified name for the type of ActiveX control for which a wrapper was generated.
Exceptions
No registered ActiveX control was found in typeLib
.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈