GenerateMetadata.GenerateSigned(String, String, Boolean, String) Method

Definition

Generates, or locates, an assembly that contains common language runtime (CLR) metadata for a COM+ component represented by the specified type library, signs the assembly with a strong-named key pair, and installs it in the global assembly cache.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual System::String ^ GenerateSigned(System::String ^ strSrcTypeLib, System::String ^ outPath, bool InstallGac, [Runtime::InteropServices::Out] System::String ^ % Error);
public string GenerateSigned (string strSrcTypeLib, string outPath, bool InstallGac, out string Error);
abstract member GenerateSigned : string * string * bool * string -> string
override this.GenerateSigned : string * string * bool * string -> string
Public Function GenerateSigned (strSrcTypeLib As String, outPath As String, InstallGac As Boolean, ByRef Error As String) As String

Parameters

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.

InstallGac
Boolean

Ignored.

Error
String

A string to which an error message can be written.

Returns

The generated assembly name; otherwise, an empty string if the inputs are invalid.

Implements

Remarks

If necessary, the GenerateSigned method generates an assembly that contains CLR metadata for a specified type library. It also generates a strong-named key pair and signs the assembly.

To do this processing, it calls the GenerateMetaData method. These methods do not need to be called directly from your code.

The InstallGac parameter indicates whether to install the assembly in the global assembly cache. However, the implementation ignores this value and always attempts to install the signed assembly in the global assembly cache.

Applies to