Share via


ModuleInfo.Name Property

Definition

Gets the name of the module.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

Property Value

The module's name (without the .dll extension).

Examples

The following example produces the following trace output:

ClientModuleTypeName : rxDemo.DemoModule, rHeil, Version=0.0.1.3, Culture=neutral, PublicKeyToken=16b74a31ba18bbaf

Name : rHeil

internal class DemoModule : Microsoft.Web.Management.Client.Module 
{
protected override void Initialize(
    IServiceProvider serviceProvider, ModuleInfo moduleInfo) 
{

    base.Initialize(serviceProvider, moduleInfo);
    Trace.WriteLine(" ClientModuleTypeName : " + 
        moduleInfo.ClientModuleTypeName);
    Trace.WriteLine(" Name : " + moduleInfo.Name);
    
    // Clear the trace window.
    resetTrace();
public override System.Collections.ICollection GetTaskItems() {

    ArrayList items = new ArrayList();

    Image imgAsk = rLoadImg.loadImgs(SystemIcons.Asterisk, 16);
    Image imgErr = rLoadImg.loadImgs(SystemIcons.Error, 16);

Applies to