New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

This Class defines the Resource Collection that inherits StronglyTypedStateManagedCollection and IEnumerable collections.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class ResourceCollection : StronglyTypedStateManagedCollection<Resource>, IList, ICollection, IStateManager, IEnumerable<Resource>, IEnumerable

Inheritance: objectStateManagedCollectionStronglyTypedStateManagedCollection<Resource>ResourceCollection

Implements: ICollectionIEnumerableIEnumerable<Resource>IListIStateManager

Inherited Members StronglyTypedStateManagedCollection<Resource>.Add(Resource)StronglyTypedStateManagedCollection<Resource>.Contains(Resource)StronglyTypedStateManagedCollection<Resource>.CopyTo(Resource[], int)StronglyTypedStateManagedCollection<Resource>.AddRange(IEnumerable<Resource>)StronglyTypedStateManagedCollection<Resource>.IndexOf(Resource)StronglyTypedStateManagedCollection<Resource>.Insert(int, Resource)StronglyTypedStateManagedCollection<Resource>.Remove(Resource)StronglyTypedStateManagedCollection<Resource>.RemoveAt(int)StronglyTypedStateManagedCollection<Resource>.this[int]StronglyTypedStateManagedCollection<Resource>.ListStateManagedCollection.Clear()StateManagedCollection.CopyTo(Array, int)StateManagedCollection.CreateKnownType(int)StateManagedCollection.GetEnumerator()StateManagedCollection.GetKnownTypes()StateManagedCollection.OnClear()StateManagedCollection.OnClearComplete()StateManagedCollection.OnValidate(object)StateManagedCollection.OnInsert(int, object)StateManagedCollection.OnInsertComplete(int, object)StateManagedCollection.OnRemove(int, object)StateManagedCollection.OnRemoveComplete(int, object)StateManagedCollection.SetDirty()StateManagedCollection.Countobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public ResourceCollection()

Methods

Gets the resource that matches the specified type and key.

C#
public Resource GetResource(string type, object key)
Parameters:typestring

The type.

keyobject

The key.

Returns:

Resource

The resource that matches the specified type and key; null if no resource matches.

Gets the first resource (if any) of the specified type.

C#
public Resource GetResourceByType(string type)
Parameters:typestring

The type of resource to search for.

Returns:

Resource

The first resource of the specified type; null if no resource matches.

Gets the resources of the specified type.

C#
public IList<Resource> GetResourcesByType(string type)
Parameters:typestring

The type of resource to search for.

Returns:

IList<Resource>

The resources of the specified type.

C#
protected override void SetDirtyObject(object o)
Parameters:oobject

Overrides: StronglyTypedStateManagedCollection<Resource>.SetDirtyObject(object)