Skip to content

Commit 16a96e3

Browse files
authored
Clarify null return scenario (#8788)
Since this only returns security groups, it will still return null if the user is a member of distribution groups, but not security groups. So it's not entirely accurate to say that it will return "null if the user does not belong to *any* groups".
1 parent 1ced916 commit 16a96e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.DirectoryServices.AccountManagement/UserPrincipal.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ ctx.Dispose();
533533
<Parameters />
534534
<Docs>
535535
<summary>Returns a collection of principal objects that contains all the authorization groups of which this user is a member. This function only returns groups that are security groups; distribution groups are not returned.</summary>
536-
<returns>A collection of <see cref="T:System.DirectoryServices.AccountManagement.Principal" /> objects that contain the groups of which the user is a member, or null if the user does not belong to any groups.</returns>
536+
<returns>A collection of <see cref="T:System.DirectoryServices.AccountManagement.Principal" /> objects that contain the groups of which the user is a member, or null if the user does not belong to any security groups.</returns>
537537
<remarks>
538538
<format type="text/markdown"><![CDATA[
539539

0 commit comments

Comments
 (0)