You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > Collection Class
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Collection Class

Ektron Collection class. Allows access to a ContentBlockItem object through IEnumerator, ICollection and IList interfaces.

C#
[DefaultProperty("DefaultCollectionID"), ToolboxData("<{0}:Collection runat=server></{0}:Collection>"), PersistChildren(true)]
public class Collection : EkXsltWebPart, IEnumerator, IEnumerable, IListSource, IDataSource, ICallbackEventHandler;
Visual Basic
<DefaultProperty("DefaultCollectionID"), ToolboxData("<{0}:Collection runat=server></{0}:Collection>"), PersistChildren(true)>
Public Class Collection
Inherits EkXsltWebPart
Inherits IEnumerator
Inherits IEnumerable
Inherits IListSource
Inherits IDataSource
Inherits ICallbackEventHandler

Collection.cs

Name 
Description 
The methods of the Collection class are listed here. 
The properties of the Collection class are listed here. 
 
Name 
Description 
 
Copies all the elements of the current System.Data.InternalDataCollectionBase to a one-dimensional System.Array, starting at the specified System.Data.InternalDataCollectionBase index.  
 
Fill 
Calls the database and updates the contents of the collection if the data is out of sync with the specified parameters.  
 
Gets a System.Collections.IEnumerator for the collection.  
 
This method returns a Collection RSS feed.  
 
Gets the view data using a dataset.  
 
Gets the view names.  
 
Moves up the index of the Collection. Returns false if the end of the collection has been surpassed.  
 
Brings the index of the collection back to zero. Does not clear the collection.  
 
this 
Index operator into a strongly typed dataset holding some common properties for a Collection item.  
 
Wraps the resulting collection with the Ektron toolbars, which will only display when a user is logged in.  
 
Wrap 
Overrideable method that's used to wrap an Ektron toolbar corresponding to a particular Control around some Html text.  
 
Name 
Description 
 
Allows overriding the derived controls default Add-menu button text (i.e. 'Add HTML Content' could be changed to 'Add Report')  
 
Sets the cache interval in second(s).  
 
Returns the description of the given folder ID.  
 
Returns the name of the given folder ID.  
 
Checks the QueryString for this value and replaces the collection with that content block when specified. Leave blank to always display the collection.  
 
Indicates the number of elements in your Collection.  
 
Gets the current object in the collection.  
 
Gets or Sets the Default CollectionID for this Control.  
 
The parameter to query for a Dynamic Collection.  
 
Array of Ektron.Cms.Common.ContentBase items that correspond to the specified Collection. Holds more information than the exposed strongly typed this[i] index operator.  
 
Enables paging if the total number of records exceeds the MaxResult value.  
 
If set to true, retrieves the content (Html body) of every content block in the collection for display.  
 
Determines whether or not to display an icon next to your navigation lists. NOTE: Only works with ecmSummary and ecmTeaser.  
 
Gets a value indicating whether the System.Data.InternalDataCollectionBase is synchronized.  
 
Defines the way a link acts when a link is clicked. Choices are:

  • _blank - This target causes the link to always be loaded in a new blank window. This window is not named.
  • _self - This target causes the link to always load in the same window the anchor was clicked in. This is useful for overriding a globally assigned BASE target.
  • _parent - This target makes the link load in the immediate frameset parent of the document. This defaults to acting like “_self” if the document has no parent.
  • _top - This target makes the link load in... more 
 
Enter the name of a markup file that manages the display of this server control.  
 
Maximum number of results to be returned. If set to zero, there is no limit.  
 
If set to true, grabs a single content block randomly from the collection. Set to false for all data in the collection.  
 
Gets or Sets the Default TaxonomyID for this Collection Control.  
 
Suppresses the output of span/div tags around the control.  
 
Gets an object that's used to synchronize the collection.  
 
Returns the Xslt object for the collection.  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!