KGy SOFT

HybridResourceManagerSetMetaObject Method

KGy SOFT Core Libraries Help
Adds or replaces a metadata object in the current HybridResourceManager with the specified name for the specified culture.

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

public virtual void SetMetaObject(
	string name,
	Object value,
	CultureInfo culture = null
)

Parameters

name
Type: SystemString
The name of the metadata to set.
value
Type: SystemObject
The value of the metadata to set. If , then a null reference will be explicitly stored for the specified culture.
culture (Optional)
Type: System.GlobalizationCultureInfo
The culture of the metadata to set. If this value is , the CultureInfo object is obtained by using the CultureInfo.InvariantCulture property. This parameter is optional.
Default value: .

Implements

IExpandoResourceManagerSetMetaObject(String, Object, CultureInfo)
Exceptions

ExceptionCondition
ArgumentNullExceptionname is .
ObjectDisposedExceptionThe HybridResourceManager is already disposed.
InvalidOperationExceptionSource is CompiledOnly.
Remarks

If value is , a null reference will be explicitly stored. Its effect is similar to the RemoveMetaObject method: the subsequent GetMetaObject calls with the same culture will return . However, enumerating the result set returned by GetExpandoResourceSet method will return the meta objects with  value.
See Also

Reference