Export (0) Print
Expand All

SelectQuery.SelectedProperties Property

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>".

Property Value

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

.NET Framework Security

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft