A Sandcastle Documented Class Library

# DateMapping AddLevelMapping Method

Adds the level mapping.

Namespace: Dundas.BI.Entities.DateMappings
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public CalendarLevelMapping AddLevelMapping(
    	string levelUniqueName,
    	DateTimeGranularity granularity
    )

    Public Function AddLevelMapping (
    	levelUniqueName As String,
    	granularity As DateTimeGranularity
    ) As CalendarLevelMapping

    public:
    CalendarLevelMapping^ AddLevelMapping(
    	String^ levelUniqueName,
    	DateTimeGranularity granularity
    )

    member AddLevelMapping :
            levelUniqueName : string *
            granularity : DateTimeGranularity -> CalendarLevelMapping

#### Parameters

levelUniqueName
  Type: System
  String
  Name of the level unique.
granularity
  Type: Dundas.BI.Data
  DateTimeGranularity
  The interval granularity.

#### Return Value

Type: CalendarLevelMapping
The level mapping.
Exceptions

Exception | Condition
--- | ---
ArgumentException | Thrown when levelUniqueName or granularity is invalid.
NotFoundException | Thrown when interval not found for given granularity.

See Also

#### Reference

DateMapping Class
Dundas.BI.Entities.DateMappings Namespace