A Sandcastle Documented Class Library

# ILocalizationService CopyLocalizationForCulture Method

Copies the localization for target culture.

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

    LocalizationInfo CopyLocalizationForCulture(
    	LocalizationInfo sourceLocalizationInfo,
    	CultureInfo targetCulture
    )

    Function CopyLocalizationForCulture (
    	sourceLocalizationInfo As LocalizationInfo,
    	targetCulture As CultureInfo
    ) As LocalizationInfo

    LocalizationInfo^ CopyLocalizationForCulture(
    	LocalizationInfo^ sourceLocalizationInfo,
    	CultureInfo^ targetCulture
    )

    abstract CopyLocalizationForCulture :
            sourceLocalizationInfo : LocalizationInfo *
            targetCulture : CultureInfo -> LocalizationInfo

#### Parameters

sourceLocalizationInfo
  Type: Dundas.BI
  LocalizationInfo
  The source localization information.
targetCulture
  Type: System.Globalization
  CultureInfo
  The target culture.

#### Return Value

Type: LocalizationInfo
The localization info of the copied localization.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | sourceLocalizationInfo is . -or- targetCulture is .
ArgumentException | Localization can only be copied to a different culture, or to the same culture in order to create an override.
NoPrivilegeException | The caller does not have administrative privileges.
InvalidSessionException | The caller context is not associated with a valid session.
InvalidOperationException | There is already a localization resource with a different name for this culture and module.

Remarks
In order to create a localization override, copy a non-override localization to the same culture. The resulted override will not contain any of the source localization strings, the override strings will have to be added manually.
See Also

#### Reference

ILocalizationService Interface
Dundas.BI Namespace