New to Telerik UI for WinFormsStart a free 30-day trial

Provides a resource identifier mapper that works with existing resource objects, mapping resource IDs to pre-existing resources in a collection.

Definition

Constructors

Initializes a new instance of the ExistingResourceIdMapper class with the specified existing resources list and resource ID property descriptor.

C#
public ExistingResourceIdMapper(IList existingResourcesList, PropertyDescriptor resourceIdDescriptor)
Parameters:existingResourcesListIList

The list of existing resources to search for matching resource IDs.

resourceIdDescriptorPropertyDescriptor

The PropertyDescriptor that describes the resource ID property on the resource objects.

Methods

Adds a resource identifier by finding the matching existing resource and adding it to the target resource list.

C#
public override void AddResourceId(EventId eventId)
Parameters:eventIdEventId

The EventId to find and add to the target resource list.

Overrides: ComplexResourceIdMapperBase.AddResourceId(EventId)

Removes all resources from the target resource list.

C#
public override void ClearResourceIds()

Overrides: ResourceIdMapper.ClearResourceIds()

Sets the target resource list where matching existing resources will be added.

C#
public override void SetResourceList(object resourceList)
Parameters:resourceListobject

The target resource list to be managed by this mapper.

Overrides: ComplexResourceIdMapperBase.SetResourceList(object)