IAttachedCollectionSourceProvider.CreateCollectionSource Method

Definition

For a given object and relationship, create an IAttachedCollectionSource. This attached collection should contain items for the given relationship as they relate to the source item.

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

Parameters

item
Object

The source item for which the collection should be created.

relationshipName
String

The name of the relationship for which a collection should be created.

Returns

Returns a new IAttachedCollectionSource, or null if this provider does not support the creation of collections for this object.

Applies to