21 references to Count
System.DirectoryServices.AccountManagement (21)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (2)
1224
if (resultPropCollection["groupType"].
Count
> 0 && resultPropCollection["objectSid"].
Count
> 0)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (15)
828
if (properties["objectSid"].
Count
> 0)
844
Debug.Assert(properties["objectGuid"].
Count
== 1);
846
if (properties["objectGuid"].
Count
== 1)
880
if (properties[suggestedAdProperty].
Count
> 0)
883
Debug.Assert(properties[suggestedAdProperty].
Count
== 1);
899
if (values.
Count
!= 0)
901
Debug.Assert(values.
Count
== 1);
951
if (values.
Count
> 0)
954
Debug.Assert(values[values.
Count
- 1] is string);
955
p.LoadValueIntoProperty(propertyName, (string)values[values.
Count
- 1]);
967
if (properties["lastLogonTimestamp"].
Count
!= 0)
991
if (values.
Count
!= 0)
993
Debug.Assert(values.
Count
== 1);
1023
if (values.
Count
!= 0)
1025
Debug.Assert(values.
Count
== 1);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (4)
488
if (properties[suggestedProperty].
Count
!= 0 && properties[suggestedProperty][0] != null)
491
Debug.Assert(properties[suggestedProperty].
Count
== 1);
579
if (values.
Count
!= 0)
581
Debug.Assert(values.
Count
== 1);