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
'宣言
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
- id
Type: System.Guid
The ID of the domain role.
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
- 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.