Bewerken

Delen via


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

Definition

Generates 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:
 System::String ^ GenerateSigned(System::String ^ SrcTypeLibFileName, System::String ^ OutPath, bool InstallGac, [Runtime::InteropServices::Out] System::String ^ % Error);
public string GenerateSigned (string SrcTypeLibFileName, string OutPath, bool InstallGac, out string Error);
abstract member GenerateSigned : string * string * bool * string -> string
Public Function GenerateSigned (SrcTypeLibFileName As String, OutPath As String, InstallGac As Boolean, ByRef Error As String) As String

Parameters

SrcTypeLibFileName
String

The name of the type library for which to generate an assembly.

OutPath
String

The folder in which to generate an assembly.

InstallGac
Boolean

A flag that indicates whether to install the assembly in the global assembly cache.

Error
String

A string to which an error message can be written.

Returns

The generated assembly name.

Remarks

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

The InstallGac parameter indicates whether to install the assembly in the global assembly cache. However, the one implementation of GenerateSigned, by the GenerateMetadata class, ignores this value and always attempts to install the signed assembly in the global assembly cache.

Applies to