IAttachedCollectionSourceProvider.CreateCollectionSource 方法

定义

对于给定的对象和关系,创建 IAttachedCollectionSource。 此附加集合应包含给定关系的项,因为它们与源项相关。

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

参数

item
Object

应为其创建集合的源项。

relationshipName
String

应为其创建集合的关系的名称。

返回

新的附加集合源;如果此提供程序不支持为此对象创建集合,则为 null。

适用于