KGy SOFT

HybridResourceManagerRemoveObject Method

KGy SOFT Core Libraries Help
Removes a resource object from 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 RemoveObject(
	string name,
	CultureInfo culture = null
)

Parameters

name
Type: SystemString
The case-sensitive name of the resource to remove.
culture (Optional)
Type: System.GlobalizationCultureInfo
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: .

Implements

IExpandoResourceManagerRemoveObject(String, CultureInfo)
Exceptions

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

If 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.

See Also

Reference