ManagementEntityAttribute.Name Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.