SelectQuery.SelectedProperties 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.

Ggets or sets an array of property names to be selected in the query.

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

public StringCollection SelectedProperties { get; set; }

Property Value

Type: System.Collections.Specialized.StringCollection

Returns a StringCollection containing the names of the properties to be selected in the query.

Setting this property value overrides any previous value stored in the object. The query string is rebuilt to reflect the new properties.

A value for the SelectedProperties property would replace the <property> item in a SELECT query of the form "SELECT <property> FROM <className> WHERE <condition>".

A StringCollection containing the names of the properties to be selected in the query.

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: