Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Given a name for a relationship, returns an 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)
Syntax
'Declaration
Function GetRelationship ( _
item As Object, _
relationshipName As String _
) As IAttachedRelationship
IAttachedRelationship GetRelationship(
Object item,
string relationshipName
)
IAttachedRelationship^ GetRelationship(
Object^ item,
String^ relationshipName
)
abstract GetRelationship :
item:Object *
relationshipName:string -> IAttachedRelationship
function GetRelationship(
item : Object,
relationshipName : String
) : IAttachedRelationship
Parameters
item
Type: ObjectThe item.
relationshipName
Type: StringThe 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.