void RemoveObject(
string name,
CultureInfo? culture = null
)
Sub RemoveObject (
name As String,
Optional culture As CultureInfo = Nothing
)
void RemoveObject(
String^ name,
CultureInfo^ culture = nullptr
)
abstract RemoveObject :
name : string *
?culture : CultureInfo
(* Defaults:
let _culture = defaultArg culture null
*)
-> unit
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.
ArgumentNullException | name is . |
ObjectDisposedException | The IExpandoResourceManager is already disposed. |
InvalidOperationException | The current IExpandoResourceManager is a HybridResourceManager, and Source is CompiledOnly. |