GenerateMetadata.Generate(String, String) 方法

定义

生成或定位一个程序集,该程序集包含指定类型库所表示的 COM+ 组件的公共语言运行时 (CLR) 元数据。Generates, or locates, an assembly that contains common language runtime (CLR) metadata for a COM+ component represented by the specified type library.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual System::String ^ Generate(System::String ^ strSrcTypeLib, System::String ^ outPath);
public string Generate (string strSrcTypeLib, string outPath);
abstract member Generate : string * string -> string
override this.Generate : string * string -> string
Public Function Generate (strSrcTypeLib As String, outPath As String) As String

参数

strSrcTypeLib
String

类型库的名称,将为该类型库生成一个程序集。The name of the type library for which to generate an assembly.

outPath
String

将在其中生成程序集或定位现有程序集的文件夹。The folder in which to generate an assembly or to locate an already existing assembly.

返回

String

生成的程序集的名称;如果输入无效,则为一个空字符串。The generated assembly name; otherwise, an empty string if the inputs are invalid.

实现

注解

如有必要,该 Generate 方法将生成一个程序集,该程序集包含指定类型库的 CLR 元数据。If necessary, the Generate method generates an assembly that contains CLR metadata for a specified type library. 为此,它将调用 GenerateMetaData 方法。To do this processing, it calls the GenerateMetaData method.

不需要直接从代码中调用这些方法。These methods do not need to be called directly from your code.

适用于