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

 

Given a name for a relationship, returns an T:Microsoft.VisualStudio.IAttachedRelationship containing a localizable description of the relationship.

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

IAttachedRelationship^ GetRelationship(
	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::IAttachedRelationship^

Returns an IAttachedRelationship corresponding to the relationship, or null if the relationship is unknown.

Return to top
Show: