IAttachedCollectionService::GetRelationships Method (Object^)

 

Gets the set of relationships supported for a given item.

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

IEnumerable<IAttachedRelationship^>^ GetRelationships(
	Object^ item
)

Parameters

item
Type: System::Object^

The item.

Return Value

Type: System.Collections.Generic::IEnumerable<IAttachedRelationship^>^

Returns IEnumerable<T> of supported relationships.

For a concrete example, an item of type "Class" might support relationships like "Base Types", "Derived Types", and "Members". These relationship descriptions would be returned from this method.

Return to top
Show: