IAttachedCollectionSourceProvider.CreateCollectionSource(Object, String) Methode

Definition

Erstellen Sie für ein bestimmtes Objekt und eine Beziehung eine IAttachedCollectionSource . Diese angefügte Auflistung sollte Elemente für die angegebene Beziehung enthalten, wenn Sie sich auf das Quell Element beziehen.

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

Parameter

item
Object

Das Quell Element, für das die Auflistung erstellt werden soll.

relationshipName
String

Der Name der Beziehung, für die eine Auflistung erstellt werden soll.

Gibt zurück

IAttachedCollectionSource

Gibt einen neuen IAttachedCollectionSource oder zurück, null Wenn dieser Anbieter das Erstellen von Auflistungen für dieses Objekt nicht unterstützt.

Gilt für