Table of Contents

ImportUseBuilder Class

Definition

Namespace
Bodu.Globalization.Calendar.Builder
Assembly
Bodu.Globalization.Calendar.Builder.dll
Package
Bodu.Globalization.Calendar.Builder 1.0.0
Source
ImportUseBuilder.cs

Provides a fluent surface for configuring a single imported concept, supplying a local alias, territory scope, category, non-working flag, and the adjustment policies applied to the imported concept.

public sealed class ImportUseBuilder
Inheritance
ImportUseBuilder
Inherited Members
Extension Methods

Methods

As(string)

Sets the local alias of the imported concept.

public ImportUseBuilder As(string alias)

Parameters

alias string

The local identifier the imported concept is bound to.

Returns

ImportUseBuilder

The same ImportUseBuilder instance, enabling chained calls.

Exceptions

ArgumentException

alias is null, empty, or white-space.

AsNonWorking(bool)

Sets whether the imported concept is a non-working day.

public ImportUseBuilder AsNonWorking(bool value = true)

Parameters

value bool

The non-working flag.

Returns

ImportUseBuilder

The same ImportUseBuilder instance, enabling chained calls.

ForTerritory(string)

Sets the territory scope of the imported concept.

public ImportUseBuilder ForTerritory(string code)

Parameters

code string

The ISO territory code.

Returns

ImportUseBuilder

The same ImportUseBuilder instance, enabling chained calls.

Exceptions

ArgumentException

code is null, empty, or white-space.

WithAdjustment(string)

Adds an adjustment policy reference applied to the imported concept.

public ImportUseBuilder WithAdjustment(string policyRef)

Parameters

policyRef string

The identifier of the adjustment policy to apply.

Returns

ImportUseBuilder

The same ImportUseBuilder instance, enabling chained calls.

Exceptions

ArgumentException

policyRef is null, empty, or white-space.

WithCategory(NotableDateCategory)

Sets the category override of the imported concept.

public ImportUseBuilder WithCategory(NotableDateCategory category)

Parameters

category NotableDateCategory

The category that overrides the imported category.

Returns

ImportUseBuilder

The same ImportUseBuilder instance, enabling chained calls.

Applies to

ProductVersions
.NET8, 10