KGy SOFT

HybridResourceManagerGetString Method (String)

KGy SOFT Core Libraries Help
Returns the value of the specified string resource.

Namespace:  KGySoft.Resources
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0
Syntax

public override string GetString(
	string name
)

Parameters

name
Type: SystemString
The name of the resource to retrieve.

Return Value

Type: String
The value of the resource localized for the caller's current UI culture, or  if name cannot be found in a resource set.
Exceptions

ExceptionCondition
ArgumentNullExceptionname is .
ObjectDisposedExceptionThe HybridResourceManager is already disposed.
InvalidOperationExceptionSafeMode is   and the type of the resource is not String.
MissingManifestResourceExceptionNo 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.
Remarks

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.

See Also

Reference