Aracılığıyla paylaş


IAttachedCollectionSourceProvider.CreateCollectionSource Yöntem

Tanım

Belirli bir nesne ve ilişki için bir IAttachedCollectionSource oluşturun. Bu ekli koleksiyon, kaynak öğeyle ilgili oldukları için verilen ilişkinin öğelerini 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

Koleksiyonun oluşturulması gereken ilişkinin adı.

Döndürülenler

Yeni bir ekli koleksiyon kaynağı veya bu sağlayıcı bu nesne için koleksiyon oluşturmayı desteklemiyorsa null.

Şunlara uygulanır