IAttachedCollectionSourceProvider::CreateCollectionSource Method (Object^, String^)
Visual Studio 2015
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.
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.
Show: