A Sandcastle Documented Class Library

# IDateMappingService GenerateDateMapping Method (Guid, IOlapCube, String, IList String , DateTime)

Generates a new DateMapping object.

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

    DateMapping GenerateDateMapping(
    	Guid timeProviderId,
    	IOlapCube cube,
    	string hierarchyUniqueName,
    	IList<string> excludedSets,
    	DateTime startDate
    )

    Function GenerateDateMapping (
    	timeProviderId As Guid,
    	cube As IOlapCube,
    	hierarchyUniqueName As String,
    	excludedSets As IList(Of String),
    	startDate As DateTime
    ) As DateMapping

    DateMapping^ GenerateDateMapping(
    	Guid timeProviderId,
    	IOlapCube^ cube,
    	String^ hierarchyUniqueName,
    	IList<String^>^ excludedSets,
    	DateTime startDate
    )

    abstract GenerateDateMapping :
            timeProviderId : Guid *
            cube : IOlapCube *
            hierarchyUniqueName : string *
            excludedSets : IList<string> *
            startDate : DateTime -> DateMapping

#### Parameters

timeProviderId
  Type: System
  Guid
  The time provider ID.
cube
  Type: Dundas.BI.Data.Metadata.Olap
  IOlapCube
  The cube.
hierarchyUniqueName
  Type: System
  String
  The hierarchy unique name.
excludedSets
  Type: System.Collections.Generic
  IList
  String
  The excluded sets.
startDate
  Type: System
  DateTime
  The start date.

#### Return Value

Type: DateMapping
A reference to DateMapping object.
Exceptions

Exception | Condition
--- | ---
ArgumentException | Thrown when timeProviderId is invalid.
ArgumentNullException | Thrown when cube is null.
ArgumentException | Thrown when hierarchyUniqueName is null or empty.
ArgumentException | Thrown when excludedSets collection is empty.

See Also

#### Reference

IDateMappingService Interface
GenerateDateMapping Overload
Dundas.BI.Entities.DateMappings Namespace