Export (0) Print
Expand All

RelationshipQuery Class

Represents a WQL REFERENCES OF data query.

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

public class RelationshipQuery : WqlObjectQuery

The RelationshipQuery type exposes the following members.

  NameDescription
Public methodRelationshipQuery()Initializes a new instance of the RelationshipQuery class. This is the default constructor.
Public methodRelationshipQuery(String)Initializes a new instance of the RelationshipQuery class. If the specified string can be successfully parsed as a WQL query, it is considered to be the query string; otherwise, it is assumed to be the path of the source object for the query. In this case, the query is assumed to be an instances query.
Public methodRelationshipQuery(String, String)Initializes a new instance of the RelationshipQuery class for the given source object and relationship class. The query is assumed to be an instance query (as opposed to a schema query).
Public methodRelationshipQuery(Boolean, String, String, String, String)Initializes a new instance of the RelationshipQuery class for a schema query using the given set of parameters. This constructor is used for schema queries only, so the first parameter must be true.
Public methodRelationshipQuery(String, String, String, String, Boolean)Initializes a new instance of the RelationshipQuery class for the given set of parameters. The query is assumed to be an instance query (as opposed to a schema query).
Top

  NameDescription
Public propertyClassDefinitionsOnlyGets or sets a value indicating that only the class definitions of the relevant relationship objects be returned.
Public propertyIsSchemaQueryGets or sets a value indicating whether this query is a schema query or an instance query.
Public propertyQueryLanguageGets the language of the query. (Inherited from WqlObjectQuery.)
Public propertyQueryStringGets or sets the query in text format. (Inherited from ManagementQuery.)
Public propertyRelationshipClassGets or sets the class of the relationship objects wanted in the query.
Public propertyRelationshipQualifierGets or sets a qualifier required on the relationship objects.
Public propertySourceObjectGets or sets the source object for this query.
Public propertyThisRoleGets or sets the role of the source object in the relationship.
Top

  NameDescription
Protected methodBuildQueryBuilds the query string according to the current property values.
Public methodCloneCreates a copy of the object. (Overrides WqlObjectQuery.Clone().)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodParseQueryParses the query string and sets the property values accordingly. (Overrides ManagementQuery.ParseQuery(String).)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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