IAttachedCollectionService.GetRelationship(Object, String) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
İ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.