WmiConfigurationAttribute Constructor (String)

 

Initializes a new instance of the T:System.Management.WmiConfigurationAttribute class that specifies the WMI namespace in which the WMI provider will expose classes.

Namespace:   System.Management.Instrumentation
Assembly:  System.Core (in System.Core.dll)

public WmiConfigurationAttribute(
	string scope
)

Parameters

scope
Type: System.String

The WMI namespace in which the provider will expose classes. For example, "root\MyProviderNamespace".

A WMI provider must expose its classes in a namespace. That is why the constructor requires scope as a parameter.

.NET Framework
Available since 3.5
Return to top
Show: