HybridResourceManagerSetMetaObject Method

Adds or replaces a metadata object in the current HybridResourceManager with the specified name for the specified culture.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public virtual void SetMetaObject(
	string name,
	Object? value,
	CultureInfo? culture = null
)

Parameters

name  String
The name of the metadata to set.
value  Object
The value of the metadata to set. If , then a null reference will be explicitly stored for the specified culture.
culture  CultureInfo  (Optional)
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)

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.

Exceptions

See Also