DomainDataDirectory.GetDomainRole Method

Gets a domain role with a specific ID.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaração
Public Function GetDomainRole ( _
    id As Guid _
) As DomainRoleInfo
public DomainRoleInfo GetDomainRole(
    Guid id
)
public:
DomainRoleInfo^ GetDomainRole(
    Guid id
)
member GetDomainRole : 
        id:Guid -> DomainRoleInfo 
public function GetDomainRole(
    id : Guid
) : DomainRoleInfo

Parameters

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.

.NET Framework Security

See Also

Reference

DomainDataDirectory Class

Microsoft.VisualStudio.Modeling Namespace