static public PrincipalCollection MakePrincipalCollection() { BookmarkableResultSet rs = PrincipalContext.Test.QueryCtx.GetGroupMembership(null, false); PrincipalCollection mc = new PrincipalCollection(rs, new Group()); return(mc); }
internal PrincipalCollectionEnumerator(ResultSet resultSet, PrincipalCollection memberCollection, List <Principal> removedValuesCompleted, List <Principal> removedValuesPending, List <Principal> insertedValuesCompleted, List <Principal> insertedValuesPending) { this.creationTime = DateTime.UtcNow; this.resultSet = resultSet; this.memberCollection = memberCollection; this.removedValuesCompleted = removedValuesCompleted; this.removedValuesPending = removedValuesPending; this.insertedValuesCompleted = insertedValuesCompleted; this.insertedValuesPending = insertedValuesPending; }
// // Internal constructors // internal PrincipalCollectionEnumerator( ResultSet resultSet, PrincipalCollection memberCollection, List <Principal> removedValuesCompleted, List <Principal> removedValuesPending, List <Principal> insertedValuesCompleted, List <Principal> insertedValuesPending ) { GlobalDebug.WriteLineIf(GlobalDebug.Info, "PrincipalCollectionEnumerator", "Ctor"); Debug.Assert(resultSet != null); _resultSet = resultSet; _memberCollection = memberCollection; _removedValuesCompleted = removedValuesCompleted; _removedValuesPending = removedValuesPending; _insertedValuesCompleted = insertedValuesCompleted; _insertedValuesPending = insertedValuesPending; }
static public void MCResetTracking(PrincipalCollection trackList) { trackList.ResetTracking(); }
static public bool MCChanged(PrincipalCollection trackList) { return(trackList.Changed); }
static public List <Principal> MCRemoved(PrincipalCollection trackList) { return(trackList.Removed); }
static public List <Principal> MCInserted(PrincipalCollection trackList) { return(trackList.Inserted); }