SelectQuery Class

 
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.

Represents a WQL SELECT data query.

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

System.Object
  System.Management.ManagementQuery
    System.Management.ObjectQuery
      System.Management.WqlObjectQuery
        System.Management.SelectQuery

public class SelectQuery : WqlObjectQuery

NameDescription
System_CAPS_pubmethodSelectQuery()

Initializes a new instance of the SelectQuery class. This is the default constructor.

System_CAPS_pubmethodSelectQuery(Boolean, String)

Initializes a new instance of the SelectQuery class for a schema query, optionally specifying a condition.

System_CAPS_pubmethodSelectQuery(String)

Initializes a new instance of the SelectQuery class for the specified query or the specified class name.

System_CAPS_pubmethodSelectQuery(String, String)

Initializes a new instance of the SelectQuery class with the specified class name and condition.

System_CAPS_pubmethodSelectQuery(String, String, String[])

Initializes a new instance of the SelectQuery class with the specified class name and condition, selecting only the specified properties.

NameDescription
System_CAPS_pubpropertyClassName

Gets or sets the class name to be selected from in the query.

System_CAPS_pubpropertyCondition

Gets or sets the condition to be applied in the SELECT query.

System_CAPS_pubpropertyIsSchemaQuery

Gets or sets a value indicating whether this query is a schema query or an instances query.

System_CAPS_pubpropertyQueryLanguage

Gets the language of the query. (Inherited from WqlObjectQuery.)

System_CAPS_pubpropertyQueryString

Gets or sets the query in the SelectQuery object, in string form. (Overrides ManagementQuery.QueryString.)

System_CAPS_pubpropertySelectedProperties

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

NameDescription
System_CAPS_protmethodBuildQuery()

Builds the query string according to the current property values.

System_CAPS_pubmethodClone()

Creates a copy of the object. (Overrides WqlObjectQuery.Clone().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodParseQuery(String)

Parses the query string and sets the property values accordingly. (Overrides ManagementQuery.ParseQuery(String).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 1.1

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

Return to top
Show: