WindowsIdentity.Groups Property
.NET Framework (current version)
Gets the groups the current Windows user belongs to.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Security.Principal.IdentityReferenceCollectionAn object representing the groups the current Windows user belongs to.
The following code example shows the use of the Groups property to display the identity references for the groups the current user belongs to. This code example is part of a larger example provided for the WindowsIdentity class.
.NET Framework
Available since 2.0
Available since 2.0
Show: