Bewerken

Share via


ManagementObject.GetRelationships Method

Definition

Gets a collection of associations to the object.

Overloads

GetRelationships(String, String, String, Boolean, EnumerationOptions)

Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String)

Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions)

Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver)

Gets a collection of associations to the object.

GetRelationships()

Gets a collection of associations to the object.

GetRelationships(String)

Gets a collection of associations to the object.

GetRelationships(String, String, String, Boolean, EnumerationOptions)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Gets a collection of associations to the object.

public:
 System::Management::ManagementObjectCollection ^ GetRelationships(System::String ^ relationshipClass, System::String ^ relationshipQualifier, System::String ^ thisRole, bool classDefinitionsOnly, System::Management::EnumerationOptions ^ options);
public System.Management.ManagementObjectCollection GetRelationships (string relationshipClass, string relationshipQualifier, string thisRole, bool classDefinitionsOnly, System.Management.EnumerationOptions options);
member this.GetRelationships : string * string * string * bool * System.Management.EnumerationOptions -> System.Management.ManagementObjectCollection
Public Function GetRelationships (relationshipClass As String, relationshipQualifier As String, thisRole As String, classDefinitionsOnly As Boolean, options As EnumerationOptions) As ManagementObjectCollection

Parameters

relationshipClass
String

The type of relationship of interest.

relationshipQualifier
String

The qualifier to be present on the relationship.

thisRole
String

The role of this object in the relationship.

classDefinitionsOnly
Boolean

When this method returns, it contains only the class definitions for the result set.

options
EnumerationOptions

The extended options for the query execution.

Returns

A ManagementObjectCollection containing the association objects.

Remarks

This operation is equivalent to a REFERENCES OF query with possibly all the extensions.

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

Applies to

GetRelationships(ManagementOperationObserver, String)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Gets a collection of associations to the object.

public:
 void GetRelationships(System::Management::ManagementOperationObserver ^ watcher, System::String ^ relationshipClass);
public void GetRelationships (System.Management.ManagementOperationObserver watcher, string relationshipClass);
member this.GetRelationships : System.Management.ManagementOperationObserver * string -> unit
Public Sub GetRelationships (watcher As ManagementOperationObserver, relationshipClass As String)

Parameters

watcher
ManagementOperationObserver

The object to use to return results.

relationshipClass
String

The associations to include.

Remarks

This operation is equivalent to a REFERENCES OF query where the AssocClass = relationshipClass.

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

Applies to

GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Gets a collection of associations to the object.

public:
 void GetRelationships(System::Management::ManagementOperationObserver ^ watcher, System::String ^ relationshipClass, System::String ^ relationshipQualifier, System::String ^ thisRole, bool classDefinitionsOnly, System::Management::EnumerationOptions ^ options);
public void GetRelationships (System.Management.ManagementOperationObserver watcher, string relationshipClass, string relationshipQualifier, string thisRole, bool classDefinitionsOnly, System.Management.EnumerationOptions options);
member this.GetRelationships : System.Management.ManagementOperationObserver * string * string * string * bool * System.Management.EnumerationOptions -> unit
Public Sub GetRelationships (watcher As ManagementOperationObserver, relationshipClass As String, relationshipQualifier As String, thisRole As String, classDefinitionsOnly As Boolean, options As EnumerationOptions)

Parameters

watcher
ManagementOperationObserver

The object to use to return results.

relationshipClass
String

The type of relationship of interest.

relationshipQualifier
String

The qualifier to be present on the relationship.

thisRole
String

The role of this object in the relationship.

classDefinitionsOnly
Boolean

When this method returns, it contains only the class definitions for the result set.

options
EnumerationOptions

The extended options for the query execution.

Remarks

This operation is equivalent to a REFERENCES OF query with possibly all the extensions.

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

Applies to

GetRelationships(ManagementOperationObserver)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Gets a collection of associations to the object.

public:
 void GetRelationships(System::Management::ManagementOperationObserver ^ watcher);
public void GetRelationships (System.Management.ManagementOperationObserver watcher);
member this.GetRelationships : System.Management.ManagementOperationObserver -> unit
Public Sub GetRelationships (watcher As ManagementOperationObserver)

Parameters

watcher
ManagementOperationObserver

The object to use to return results.

Remarks

This operation is equivalent to a REFERENCES OF 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.

Applies to

GetRelationships()

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Gets a collection of associations to the object.

public:
 System::Management::ManagementObjectCollection ^ GetRelationships();
public System.Management.ManagementObjectCollection GetRelationships ();
member this.GetRelationships : unit -> System.Management.ManagementObjectCollection
Public Function GetRelationships () As ManagementObjectCollection

Returns

A ManagementObjectCollection containing the association objects.

Remarks

The operation is equivalent to a REFERENCES OF 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.

Applies to

GetRelationships(String)

Source:
ManagementObject.cs
Source:
ManagementObject.cs
Source:
ManagementObject.cs

Gets a collection of associations to the object.

public:
 System::Management::ManagementObjectCollection ^ GetRelationships(System::String ^ relationshipClass);
public System.Management.ManagementObjectCollection GetRelationships (string relationshipClass);
member this.GetRelationships : string -> System.Management.ManagementObjectCollection
Public Function GetRelationships (relationshipClass As String) As ManagementObjectCollection

Parameters

relationshipClass
String

The associations to include.

Returns

A ManagementObjectCollection containing the association objects.

Remarks

This operation is equivalent to a REFERENCES OF query where the AssocClass = relationshipClass.

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

Applies to