DomainRelationshipInfo.FindDomainRole Method
Finds a domain role by name.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
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
- roleName
Type: System.String
Domain role name
Return Value
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
A DomainRoleInfo object if found; otherwise, null.
Remarks
FindDomainRole also searches any base relationships.
.NET Framework Security
- 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.