Sdílet prostřednictvím


IAttachedCollectionService.GetRelationship(Object, String) Metoda

Definice

Zadaný název relace vrátí IAttachedRelationship obsahující lokalizovatelný popis relace.

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

Parametry

item
Object

Položka, pro kterou chcete získat informace o relaci.

relationshipName
String

Známý název relace.

Návraty

IAttachedRelationship Instance odpovídající relaci, nebo null, pokud je relace neznámá.

Platí pro