Class
BindingListResourceIdMapper

Provides a resource identifier mapper that works with IBindingList collections for managing complex resource objects.

Definition

Constructors

BindingListResourceIdMapper(PropertyDescriptor)

Initializes a new instance of the BindingListResourceIdMapper class with the specified resource ID property descriptor.

Declaration

cs-api-definition
public BindingListResourceIdMapper(PropertyDescriptor resourceIdDescriptor)

Parameters

resourceIdDescriptor

PropertyDescriptor

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

Methods

AddResourceIdCore(object)

Adds the resource ID object to the collection, with the object already being added via AddNew in CreateResourceIdCore().

Declaration

cs-api-definition
protected override void AddResourceIdCore(object resourceIdObject)

Parameters

resourceIdObject

object

The resource ID object that was created and is already in the collection.

Overrides ComplexResourceIdMapper.AddResourceIdCore(object)

ClearResourceIds()

Removes all resource identifiers from the binding list if removal is allowed.

Declaration

cs-api-definition
public override void ClearResourceIds()

Overrides ResourceIdMapper.ClearResourceIds()

CreateResourceIdCore()

Creates a new resource ID object using the binding list's AddNew method if new items are allowed.

Declaration

cs-api-definition
protected override object CreateResourceIdCore()

Returns

object

A new resource ID object from the binding list, or null if adding new items is not allowed.

Overrides ComplexResourceIdMapper.CreateResourceIdCore()

SetResourceList(object)

Sets the resource list and initializes the binding list interface for managing complex resource objects.

Declaration

cs-api-definition
public override void SetResourceList(object resourceList)

Parameters

resourceList

object

The resource list to be managed by this mapper.

Overrides ComplexResourceIdMapperBase.SetResourceList(object)