KGy SOFT

HybridResourceManagerGetMetaString Method

KGy SOFT Core Libraries Help
Returns the value of the string metadata for the specified culture.

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

public virtual string GetMetaString(
	string name,
	CultureInfo culture = null
)

Parameters

name
Type: SystemString
The name of the metadata to retrieve.
culture (Optional)
Type: System.GlobalizationCultureInfo
An object that represents the culture for which the metadata should be returned. If this value is , the CultureInfo object is obtained by using the InvariantCulture property. Unlike in case of GetString method, no fallback is used if the metadata is not found in the specified culture. This parameter is optional.
Default value: .

Return Value

Type: String
The value of the metadata of the specified culture, or  if name cannot be found in a resource set.

Implements

IExpandoResourceManagerGetMetaString(String, CultureInfo)
Exceptions

ExceptionCondition
ArgumentNullExceptionname is .
ObjectDisposedExceptionThe HybridResourceManager is already disposed.
InvalidOperationExceptionSafeMode is  and the type of the metadata 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  and name is a non-string metadata, then instead of throwing an InvalidOperationException the method returns the underlying raw XML content of the metadata.

See Also

Reference