IAttachedCollectionService.GetRelationship(Object, String) Méthode

Définition

Avec un nom pour une relation, retourne un IAttachedRelationship contenant une description localisable de la relation.

public:
 Microsoft::VisualStudio::Shell::IAttachedRelationship ^ GetRelationship(System::Object ^ item, System::String ^ relationshipName);
public:
 Microsoft::VisualStudio::Shell::IAttachedRelationship ^ GetRelationship(Platform::Object ^ item, Platform::String ^ relationshipName);
Microsoft::VisualStudio::Shell::IAttachedRelationship GetRelationship(winrt::Windows::Foundation::IInspectable const & item, std::wstring const & relationshipName);
public Microsoft.VisualStudio.Shell.IAttachedRelationship GetRelationship (object item, string relationshipName);
abstract member GetRelationship : obj * string -> Microsoft.VisualStudio.Shell.IAttachedRelationship
Public Function GetRelationship (item As Object, relationshipName As String) As IAttachedRelationship

Paramètres

item
Object

Élément pour lequel obtenir les informations d’affichage de la relation.

relationshipName
String

Nom connu de la relation.

Retours

Un IAttachedRelationship instance correspondant à la relation, ou null si la relation est inconnue.

S’applique à