IAttachedCollectionSourceProvider::CreateCollectionSource Method (Object^, String^)

 

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.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.12.0 (in Microsoft.VisualStudio.Shell.Immutable.12.0.dll)

IAttachedCollectionSource^ CreateCollectionSource(
	Object^ item,
	String^ relationshipName
)

Parameters

item
Type: System::Object^

The source item for which the collection should be created.

relationshipName
Type: System::String^

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

Return Value

Type: Microsoft.VisualStudio.Shell::IAttachedCollectionSource^

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

Return to top
Show: