Exemplo n.º 1
0
        /// <summary>
        /// Returns the Collection at the given path, with the content paginated
        /// according to the arguments.
        /// </summary>
        /// <param name="path">the path of the collection. MUST point to a collection!</param>
        /// <param name="start">the initial index of the child to return. If
        /// there are fewer children than the specified value, a RegistryException will
        /// be thrown.</param>
        /// <param name="pageSize">the maximum number of results to return</param>
        /// <returns>a Collection containing the specified results in the content</returns>
        public Collection Get(String path, int start, int pageSize)
        {
            WSCollection collection = null;

            execute(delegate() { collection =
                                     client.WSgetWithPageSize(path, start, pageSize); });
            Collection output = new Collection(this, collection);

            output.PathWithVersion = path;
            return(output);
        }
Exemplo n.º 2
0
 public Collection(RegistryClient client, WSCollection collection)
     : base(client, collection)
 {
     this._childCount = collection.childCount;
 }
Exemplo n.º 3
0
 public Collection(RegistryClient client, WSCollection collection)
     : base(client, collection)
 {
     this._childCount = collection.childCount;
 }