Share via


LocalizedString Constructors

Definition

Overloads

LocalizedString(String, String)

Creates a new LocalizedString.

LocalizedString(String, String, Boolean)

Creates a new LocalizedString.

LocalizedString(String, String, Boolean, String)

Creates a new LocalizedString.

LocalizedString(String, String)

Source:
LocalizedString.cs
Source:
LocalizedString.cs

Creates a new LocalizedString.

public:
 LocalizedString(System::String ^ name, System::String ^ value);
public LocalizedString (string name, string value);
new Microsoft.Extensions.Localization.LocalizedString : string * string -> Microsoft.Extensions.Localization.LocalizedString
Public Sub New (name As String, value As String)

Parameters

name
String

The name of the string in the resource it was loaded from.

value
String

The actual string.

Applies to

LocalizedString(String, String, Boolean)

Source:
LocalizedString.cs
Source:
LocalizedString.cs

Creates a new LocalizedString.

public:
 LocalizedString(System::String ^ name, System::String ^ value, bool resourceNotFound);
public LocalizedString (string name, string value, bool resourceNotFound);
new Microsoft.Extensions.Localization.LocalizedString : string * string * bool -> Microsoft.Extensions.Localization.LocalizedString
Public Sub New (name As String, value As String, resourceNotFound As Boolean)

Parameters

name
String

The name of the string in the resource it was loaded from.

value
String

The actual string.

resourceNotFound
Boolean

Whether the string was not found in a resource. Set this to true to indicate an alternate string value was used.

Applies to

LocalizedString(String, String, Boolean, String)

Source:
LocalizedString.cs
Source:
LocalizedString.cs

Creates a new LocalizedString.

public:
 LocalizedString(System::String ^ name, System::String ^ value, bool resourceNotFound, System::String ^ searchedLocation);
public LocalizedString (string name, string value, bool resourceNotFound, string? searchedLocation);
new Microsoft.Extensions.Localization.LocalizedString : string * string * bool * string -> Microsoft.Extensions.Localization.LocalizedString
Public Sub New (name As String, value As String, resourceNotFound As Boolean, searchedLocation As String)

Parameters

name
String

The name of the string in the resource it was loaded from.

value
String

The actual string.

resourceNotFound
Boolean

Whether the string was not found in a resource. Set this to true to indicate an alternate string value was used.

searchedLocation
String

The location which was searched for a localization value.

Applies to