Note
For more details see the Auto Appending section at the description of the DynamicResourceManager class.
public override string? GetString(
string name,
CultureInfo? culture
)
Public Overrides Function GetString (
name As String,
culture As CultureInfo
) As String
public:
virtual String^ GetString(
String^ name,
CultureInfo^ culture
) override
abstract GetString :
name : string *
culture : CultureInfo -> string
override GetString :
name : string *
culture : CultureInfo -> string
If SafeMode is , then instead of throwing an InvalidOperationException either the raw XML value (for resources from a .resx source) or the string representation of the object (for resources from a compiled source) will be returned for non-string resources.
String values are not duplicated in memory, regardless the value of the CloneValues property.
Depending on the value of the AutoAppend property, dynamic expansion of the resource sets of different cultures may occur when calling this method. In this case the result will be prefixed either by LanguageSettings.UntranslatedResourcePrefix or LanguageSettings.UnknownResourcePrefix.
ArgumentNullException | name is . |
ObjectDisposedException | The DynamicResourceManager is already disposed. |
InvalidOperationException | SafeMode is and the type of the resource is not String. |
MissingManifestResourceException | No usable set of localized resources has been found, and there are no default culture resources. For information about how to handle this exception, see the notes under Instantiating a ResXResourceManager object section of the description of the ResXResourceManager class. |