.NET Framework (current version)
Gets or sets the type of relationship (association).
System.Management (in System.Management.dll)
Public Property RelationshipClass As String
Returns a String value containing the relationship class name.
Setting this property value overrides any previous value stored in the object. The query string is rebuilt to reflect the new relationship class.
A string containing the relationship class name.
The following example sets the type of relationship between a WMI class and a RelatedObjectQuery.
Public Class Sample
Public Overloads Shared Function _
Main(ByVal args() As String) As Integer
Dim q As New RelatedObjectQuery( _
q.RelationshipClass = "Win32_DependentService"
Return to top
Available since 1.1