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!

WindowsPrincipal.IsInRole

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

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

Parameters

role
[To be supplied.]

Return Value

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

See Also

WindowsPrincipal Class | WindowsPrincipal Members | System.Security.Principal Namespace