Class
ComplexResourceIdMapper

Provides an abstract base class for complex resource identifier mappers that can create and manage complex objects containing resource ID properties.

Definition

Constructors

ComplexResourceIdMapper(PropertyDescriptor)

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

Declaration

cs-api-definition
public ComplexResourceIdMapper(PropertyDescriptor resourceIdDescriptor)

Parameters

resourceIdDescriptor

PropertyDescriptor

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

Methods

AddResourceId(EventId)

Adds a resource identifier by creating a new complex object, setting its resource ID property, and adding it to the collection.

Declaration

cs-api-definition
public override void AddResourceId(EventId eventId)

Parameters

eventId

EventId

The EventId to add to the resource collection.

Overrides ComplexResourceIdMapperBase.AddResourceId(EventId)

AddResourceIdCore(object)

Adds the created resource ID object to the underlying collection.

Declaration

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

Parameters

resourceIdObject

object

The resource ID object to add to the collection.

CreateResourceIdCore()

Creates a new resource ID object instance that will hold the resource identifier value.

Declaration

cs-api-definition
protected abstract object CreateResourceIdCore()

Returns

object

A new object instance for holding the resource identifier, or null if creation failed.