IExpandoResourceManagerRemoveObject Method

Removes a resource object from the current IExpandoResourceManager with the specified name for the specified culture.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
void RemoveObject(
	string name,
	CultureInfo? culture = null
)

Parameters

name  String
The case-sensitive name of the resource to remove.
culture  CultureInfo  (Optional)
The culture of the resource to remove. If this value is , the CultureInfo object is obtained by using the CultureInfo.CurrentUICulture property. This parameter is optional.
Default value: .

Remarks

If this IExpandoResourceManager instance is a HybridResourceManager, and there is a binary resource defined for name and culture, then after this call the originally defined value will be returned by GetObject method from the binary resources. If you want to force hiding the binary resource and make GetObject to default to the parent CultureInfo of the specified culture, then use the SetObject method with a value.

name is considered as case-sensitive. If name occurs multiple times in the resource set in case-insensitive manner, they can be removed one by one only.

Exceptions

See Also