NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IPrincipal.IsInRole

Provides a means for checking to see if the principal belongs to a given role.

[Visual Basic]
Function IsInRole( _
   ByVal role As String _
) As Boolean
[C#]
bool IsInRole(
   string role
);
[C++]
bool IsInRole(
   String* role
) = 0;
[JScript]
function IsInRole(
   role : String
) : Boolean;

Parameters

role
security for which to check membership

Return Value

True if principal is a member of the role specified, false otherwise.

See Also

IPrincipal Interface | IPrincipal Members | System.Security.Principal Namespace