IAttachedCollectionService::GetOrCreateCollectionSource Method (Object^, String^)
Visual Studio 2015
Gets or creates an IAttachedCollectionSource instance that represents an attached collection for the given relationship on the given item.
Assembly: Microsoft.VisualStudio.Shell.Immutable.12.0 (in Microsoft.VisualStudio.Shell.Immutable.12.0.dll)
IAttachedCollectionSource^ GetOrCreateCollectionSource( Object^ item, String^ relationshipName )
Parameters
- item
-
Type:
System::Object^
The item.
- relationshipName
-
Type:
System::String^
The name of the relationship.
Return Value
Type: Microsoft.VisualStudio.Shell::IAttachedCollectionSource^Returns IAttachedCollectionSource.
For a concrete example, an item of type "Class" for a relationship identified by "Base Types" would result in the construction of an T:Microsoft.VisualStudio.IAttachedCollectionSource whose Items property contain the base types for the item.
Show: