Gets a domain relationship with a specific ID.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Function GetDomainRelationship ( _
id As Guid _
) As DomainRelationshipInfo
'使用
Dim instance As DomainDataDirectory
Dim id As Guid
Dim returnValue As DomainRelationshipInfo
returnValue = instance.GetDomainRelationship(id)
public DomainRelationshipInfo GetDomainRelationship(
Guid id
)
public:
DomainRelationshipInfo^ GetDomainRelationship(
Guid id
)
public function GetDomainRelationship(
id : Guid
) : DomainRelationshipInfo
Parameters
id
Type: System.GuidThe ID of the domain relationship.
Return Value
Type: Microsoft.VisualStudio.Modeling.DomainRelationshipInfo
A DomainRelationshipInfo object with the specified ID.
Exceptions
| Exception | Condition |
|---|---|
| DomainDataNotFoundException | If the requested domain relationship is not found. |
Permissions
- 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.