Gets a domain relationship by the full name.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Function GetDomainRelationship ( _
relationshipFullName As String _
) As DomainRelationshipInfo
'Usage
Dim instance As DomainDataDirectory
Dim relationshipFullName As String
Dim returnValue As DomainRelationshipInfo
returnValue = instance.GetDomainRelationship(relationshipFullName)
public DomainRelationshipInfo GetDomainRelationship(
string relationshipFullName
)
public:
DomainRelationshipInfo^ GetDomainRelationship(
String^ relationshipFullName
)
public function GetDomainRelationship(
relationshipFullName : String
) : DomainRelationshipInfo
Parameters
relationshipFullName
Type: System.StringThe full name of the domain relationship.
Return Value
Type: Microsoft.VisualStudio.Modeling.DomainRelationshipInfo
A DomainRelationshipInfo object with the specified full name.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If a nulla null reference (Nothing in Visual Basic) reference (Nothing in Visual Basic) is passed in as an argument. |
| DomainDataNotFoundException | If the requested domain relationship is not found. |
.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.