ManagementObject.GetRelationships Método

Definição

Obtém uma coleção de associações ao objeto.Gets a collection of associations to the object.

Sobrecargas

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

Obtém uma coleção de associações ao objeto.Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String)

Obtém uma coleção de associações ao objeto.Gets a collection of associations to the object.

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

Obtém uma coleção de associações ao objeto.Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver)

Obtém uma coleção de associações ao objeto.Gets a collection of associations to the object.

GetRelationships()

Obtém uma coleção de associações ao objeto.Gets a collection of associations to the object.

GetRelationships(String)

Obtém uma coleção de associações ao objeto.Gets a collection of associations to the object.

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

Obtém uma coleção de associações ao objeto.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

Parâmetros

relationshipClass
String

O tipo de relação de interesse.The type of relationship of interest.

relationshipQualifier
String

O qualificador que deve estar presente na relação.The qualifier to be present on the relationship.

thisRole
String

A função deste objeto na relação.The role of this object in the relationship.

classDefinitionsOnly
Boolean

Quando este método é retornado, ele contém apenas as definições de classe para o conjunto de resultados.When this method returns, it contains only the class definitions for the result set.

options
EnumerationOptions

As opções estendidas para a execução da consulta.The extended options for the query execution.

Retornos

ManagementObjectCollection

Uma ManagementObjectCollection que contém os objetos de associação.A ManagementObjectCollection containing the association objects.

Comentários

Essa operação é equivalente a uma referência de consulta com possivelmente todas as extensões.This operation is equivalent to a REFERENCES OF query with possibly all the extensions.

Segurança do .NET Framework.NET Framework Security

Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.

Aplica-se a

GetRelationships(ManagementOperationObserver, String)

Obtém uma coleção de associações ao objeto.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)

Parâmetros

watcher
ManagementOperationObserver

O objeto a ser usado para retornar os resultados.The object to use to return results.

relationshipClass
String

As associações a serem incluídas.The associations to include.

Comentários

Esta operação é equivalente a uma referência de consulta em que AssocClass = relationshipClass.This operation is equivalent to a REFERENCES OF query where the AssocClass = relationshipClass.

Segurança do .NET Framework.NET Framework Security

Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.

Aplica-se a

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

Obtém uma coleção de associações ao objeto.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)

Parâmetros

watcher
ManagementOperationObserver

O objeto a ser usado para retornar os resultados.The object to use to return results.

relationshipClass
String

O tipo de relação de interesse.The type of relationship of interest.

relationshipQualifier
String

O qualificador que deve estar presente na relação.The qualifier to be present on the relationship.

thisRole
String

A função deste objeto na relação.The role of this object in the relationship.

classDefinitionsOnly
Boolean

Quando este método é retornado, ele contém apenas as definições de classe para o conjunto de resultados.When this method returns, it contains only the class definitions for the result set.

options
EnumerationOptions

As opções estendidas para a execução da consulta.The extended options for the query execution.

Comentários

Essa operação é equivalente a uma referência de consulta com possivelmente todas as extensões.This operation is equivalent to a REFERENCES OF query with possibly all the extensions.

Segurança do .NET Framework.NET Framework Security

Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.

Aplica-se a

GetRelationships(ManagementOperationObserver)

Obtém uma coleção de associações ao objeto.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)

Parâmetros

watcher
ManagementOperationObserver

O objeto a ser usado para retornar os resultados.The object to use to return results.

Comentários

Esta operação é equivalente a uma referência de consulta.This operation is equivalent to a REFERENCES OF query.

Segurança do .NET Framework.NET Framework Security

Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.

Aplica-se a

GetRelationships()

Obtém uma coleção de associações ao objeto.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

Retornos

ManagementObjectCollection

Uma ManagementObjectCollection que contém os objetos de associação.A ManagementObjectCollection containing the association objects.

Comentários

A operação é equivalente a uma referência de consulta.The operation is equivalent to a REFERENCES OF query.

Segurança do .NET Framework.NET Framework Security

Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.

Aplica-se a

GetRelationships(String)

Obtém uma coleção de associações ao objeto.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

Parâmetros

relationshipClass
String

As associações a serem incluídas.The associations to include.

Retornos

ManagementObjectCollection

Uma ManagementObjectCollection que contém os objetos de associação.A ManagementObjectCollection containing the association objects.

Comentários

Esta operação é equivalente a uma referência de consulta em que AssocClass = relationshipClass.This operation is equivalent to a REFERENCES OF query where the AssocClass = relationshipClass.

Segurança do .NET Framework.NET Framework Security

Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.

Aplica-se a