Export (0) Print
Expand All

WmiConfigurationAttribute Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Defines the Windows Management Instrumentation (WMI) namespace, hosting model, and security for a WMI provider. The WmiConfiguration attribute marks the assembly that contains the provider.

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

public sealed class WmiConfigurationAttribute : Attribute
Not applicable.

// Specify that this code is used to to create an assembly 
// that contains a WMI Provider.
// Use the assembly:WmiConfiguration attribute to define the WMI
// namespace, the hosting model, and the security of the WMI provider.
// The attribute below specifies that the class this provider
// exposes to WMI will be in the root/MortgageCalc namespace.

[assembly: WmiConfiguration("root/MortgageCalc",HostingModel = ManagementHostingModel.Decoupled, IdentifyLevel = false)]


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows Server 2003, Windows XP SP2, Windows Vista

The .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.5
© 2015 Microsoft