Breyta

Deila með


ManagementEntityAttribute.Name Property

Definition

Gets or sets the name of the WMI class.

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

Property Value

A string that contains the name of the WMI class.

Examples

In the following example, the Name parameter is used to set the name of the WMI class represented by the MortgageCalcWMIProvider class. It sets the name to MortgageCalculator. If the Name parameter is not used, the corresponding C# class name, MortgageCalcWMIProvider in this case, is used as the WMI class name.

[ManagementEntity(Name = "MortgageCalculator")]
public class MortgageCalcWMIProvider
{
}

Remarks

If you do not specify the name of the WMI class by setting this property, the WMI class will default to the name of the attributed class.

Applies to