ManagementEntityAttribute::Name Property
.NET Framework (current version)
Gets or sets the name of the WMI class.
Assembly: System.Core (in System.Core.dll)
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.
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
{
}
.NET Framework
Available since 3.5
Available since 3.5
Show: