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