Share via


IAttachedCollectionService.GetRelationships(Object) Method

Definition

Gets the set of relationships supported for a given item.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Shell::IAttachedRelationship ^> ^ GetRelationships(System::Object ^ item);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.IAttachedRelationship> GetRelationships (object item);
abstract member GetRelationships : obj -> seq<Microsoft.VisualStudio.Shell.IAttachedRelationship>
Public Function GetRelationships (item As Object) As IEnumerable(Of IAttachedRelationship)

Parameters

item
Object

The item to get the supported relationships for.

Returns

An enumeration of supported relationships.

Remarks

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.

Applies to