A Sandcastle Documented Class Library

# LocalizationHelper ReplaceCustomUILocalizationStrings Method

Replaces the custom UI localization strings. The expected format is that it's surrounded by $%$. For example: Hello $%$GS_Localized_String$%$.

Namespace: Dundas.BI.Utility
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 static string ReplaceCustomUILocalizationStrings(
    	string content,
    	Guid moduleId
    )

    Public Shared Function ReplaceCustomUILocalizationStrings (
    	content As String,
    	moduleId As Guid
    ) As String

    public:
    static String^ ReplaceCustomUILocalizationStrings(
    	String^ content,
    	Guid moduleId
    )

    static member ReplaceCustomUILocalizationStrings :
            content : string *
            moduleId : Guid -> string

#### Parameters

content
  Type: System
  String
  The content to replace the localization strings within.
moduleId
  Type: System
  Guid
  The ID of the module for localization string loading.

#### Return Value

Type: String
The replaced contents.
Exceptions

Exception | Condition
--- | ---
ArgumentException | Thrown when regex input, or ILocalizationService.GetString argument is or empty.
ArgumentNullException | Thrown when regex input is or empty.
RegexMatchTimeoutException | Thrown when regex takes too long to process.

See Also

#### Reference

LocalizationHelper Class
Dundas.BI.Utility Namespace