Partager via


IAttachedCollectionService.GetRelationships Method

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)

Syntax

'Declaration
Function GetRelationships ( _
    item As Object _
) As IEnumerable(Of IAttachedRelationship)
IEnumerable<IAttachedRelationship> GetRelationships(
    Object item
)
IEnumerable<IAttachedRelationship^>^ GetRelationships(
    Object^ item
)
abstract GetRelationships : 
        item:Object -> IEnumerable<IAttachedRelationship> 
function GetRelationships(
    item : Object
) : IEnumerable<IAttachedRelationship>

Parameters

  • item
    Type: Object

    The item.

Return Value

Type: IEnumerable<IAttachedRelationship>
Returns IEnumerable 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.

.NET Framework Security

See Also

Reference

IAttachedCollectionService Interface

Microsoft.VisualStudio.Shell Namespace