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
aliasstringThe local identifier the imported concept is bound to.
Returns
- ImportUseBuilder
The same ImportUseBuilder instance, enabling chained calls.
Exceptions
- ArgumentException
aliasis null, empty, or white-space.
AsNonWorking(bool)
Sets whether the imported concept is a non-working day.
public ImportUseBuilder AsNonWorking(bool value = true)
Parameters
valueboolThe 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
codestringThe ISO territory code.
Returns
- ImportUseBuilder
The same ImportUseBuilder instance, enabling chained calls.
Exceptions
- ArgumentException
codeis null, empty, or white-space.
WithAdjustment(string)
Adds an adjustment policy reference applied to the imported concept.
public ImportUseBuilder WithAdjustment(string policyRef)
Parameters
policyRefstringThe identifier of the adjustment policy to apply.
Returns
- ImportUseBuilder
The same ImportUseBuilder instance, enabling chained calls.
Exceptions
- ArgumentException
policyRefis null, empty, or white-space.
WithCategory(NotableDateCategory)
Sets the category override of the imported concept.
public ImportUseBuilder WithCategory(NotableDateCategory category)
Parameters
categoryNotableDateCategoryThe category that overrides the imported category.
Returns
- ImportUseBuilder
The same ImportUseBuilder instance, enabling chained calls.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |