DefaultPath Property

ManagementPath.DefaultPath Property

 

Gets or sets the default scope path used when no scope is specified. The default scope is \\.\root\cimv2, and can be changed by setting this property.

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

public static ManagementPath DefaultPath { get; set; }

Property Value

Type: System.Management.ManagementPath

Returns a ManagementPath that contains the default scope (namespace) path used when no scope is specified.

By default the scope value is \\.\root\cimv2, or a different scope path if the default was changed.

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft