Skip to content

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

public ITrackingConfiguration Id(Func<object, string> idFunc, object? @namespace = null, bool includeType = true)

Summary: Identifiers the specified identifier function.

Parameters

NameTypeDescription
idFuncFuncThe provided function will be used to get an identifier for a target object in order to identify the data that belongs to it.
namespace = nullobject?Serves to distinguish objects with the same ids that are used in different contexts.
includeType = trueboolIf true, the name of the type will be included in the id. This prevents id clashes with different types.

Returns: ITrackingConfiguration -- ITrackingConfiguration.