ResXResourceSetSetMetaObject Method

Adds or replaces a metadata object in the current ResXResourceSet with the specified name.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public void SetMetaObject(
	string name,
	Object? value
)

Parameters

name  String
Name of the metadata value to set.
value  Object
The metadata value to set. If , the value will be removed.

Implements

IExpandoResourceSetSetMetaObject(String, Object)

Remarks

If value is , a null reference will be explicitly stored. Its effect is similar to the RemoveMetaObject method (GetMetaObject will return in both cases), but if has been set, it will returned among the results of the GetMetadataEnumerator method.

value can be a ResXDataNode as well, its value will be interpreted correctly and added to the ResXResourceSet with the specified name.

If value is a ResXFileRef, then a file reference will be added to the ResXResourceSet. On saving its path will be made relative to the specified basePath argument of the Save methods. If forceEmbeddedResources is on saving, the file references will be converted to embedded ones.

Exceptions

See Also