IAttachedCollectionSourceProvider.CreateCollectionSource Yöntem

Tanım

Belirli bir nesne ve ilişki için, oluşturun IAttachedCollectionSource . Bu ekli koleksiyon, kaynak öğeyle ilişkili olarak belirtilen ilişki için öğeler içermelidir.

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

Parametreler

item
Object

Koleksiyonun oluşturulması gereken kaynak öğe.

relationshipName
String

Bir koleksiyonun oluşturulması gereken ilişkinin adı.

Döndürülenler

IAttachedCollectionSource

Yeni bir döndürür IAttachedCollectionSource veya null Bu sağlayıcı, bu nesne için koleksiyon oluşturmayı desteklemiyorsa.

Şunlara uygulanır