WindowsIdentity::Groups Property

 

Gets the groups the current Windows user belongs to.

Namespace:   System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

public:
property IdentityReferenceCollection^ Groups {
	IdentityReferenceCollection^ get();
}

Property Value

Type: System.Security.Principal::IdentityReferenceCollection^

An 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: