Partilhar via


CompilationOptions.ModuleName Property

Definition

Name of the primary module, or null if a default name should be used.

public:  property System::String ^ ModuleName {  public:
System::String ^ get(); protected:
 void set(System::String ^ value); };
public string ModuleName { get; protected set; }
public string? ModuleName { get; protected set; }
member this.ModuleName : string with get, set
Public Property ModuleName As String

Property Value

Remarks

The name usually (but not necessarily) includes an extension, e.g. "MyModule.dll".

If ModuleName is null the actual name written to metadata is derived from the name of the compilation (AssemblyName) by appending a default extension for OutputKind.

Applies to