Share via


DomainDataDirectory.FindDomainRole Method

Finds 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

'Declaration
Public Function FindDomainRole ( _
    id As Guid _
) As DomainRoleInfo
public DomainRoleInfo FindDomainRole(
    Guid id
)
public:
DomainRoleInfo^ FindDomainRole(
    Guid id
)
member FindDomainRole : 
        id:Guid -> DomainRoleInfo 
public function FindDomainRole(
    id : Guid
) : DomainRoleInfo

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
A DomainRoleInfo object or null if not found.

Remarks

If the domain role is not found, nulla null reference (Nothing in Visual Basic) is returned.

.NET Framework Security

See Also

Reference

DomainDataDirectory Class

Microsoft.VisualStudio.Modeling Namespace