Aracılığıyla paylaş


IAttachedCollectionService.GetRelationship(Object, String) Yöntem

Tanım

İlişki için bir ad verildiğinde, ilişkinin yerelleştirilebilir bir açıklamasını içeren bir IAttachedRelationship döndürür.

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

Parametreler

item
Object

İlişkinin alındığı öğe bilgileri görüntüler.

relationshipName
String

İlişkinin bilinen adı.

Döndürülenler

İlişkiye karşılık gelen bir IAttachedRelationship örneği veya ilişki bilinmiyorsa null.

Şunlara uygulanır