Share via


DomainRelationshipInfo.FindDomainRole Method

Finds a domain role by name.

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

Syntax

'Declaration
Public Function FindDomainRole ( _
    roleName As String _
) As DomainRoleInfo
public DomainRoleInfo FindDomainRole(
    string roleName
)
public:
DomainRoleInfo^ FindDomainRole(
    String^ roleName
)
member FindDomainRole : 
        roleName:string -> DomainRoleInfo
public function FindDomainRole(
    roleName : String
) : DomainRoleInfo

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
A DomainRoleInfo object if found; otherwise, null.

Remarks

FindDomainRole also searches any base relationships.

.NET Framework Security

See Also

Reference

DomainRelationshipInfo Class

Microsoft.VisualStudio.Modeling Namespace