IAttachedCollectionService::GetOrCreateCollectionSource Method (Object^, String^)

 

Gets or creates an IAttachedCollectionSource instance that represents an attached collection for the given relationship on the given item.

Namespace:   Microsoft.VisualStudio.Shell
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.

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.

Return to top
Show: