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