EnumerationOptions.EnsureLocatable Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value indicating whether to the objects returned should have locatable information in them. This ensures that the system properties, such as __PATH, __RELPATH, and __SERVER, are non-NULL. This flag can only be used in queries, and is ignored in enumerations.

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

public bool EnsureLocatable { get; set; }

Property Value

Type: System.Boolean

Returns a Boolean value indicating whether the objects returned should have locatable information in them.

true if WMI should ensure all returned objects have valid paths; otherwise, false. The default value is false.

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: