void SetObject(
string name,
Object? value,
CultureInfo? culture = null
)
Sub SetObject (
name As String,
value As Object,
Optional culture As CultureInfo = Nothing
)
void SetObject(
String^ name,
Object^ value,
CultureInfo^ culture = nullptr
)
abstract SetObject :
name : string *
value : Object *
?culture : CultureInfo
(* Defaults:
let _culture = defaultArg culture null
*)
-> unit
If value is , a null reference will be explicitly stored. As a result, the subsequent GetObject calls with the same culture will fall back to the parent culture, or will return if name is not found in any parent cultures. However, enumerating the result set returned by GetExpandoResourceSet method will return the resources with value.
If the current IExpandoResourceManager is a HybridResourceManager, and you want to remove the user-defined ResX content and reset the original resource defined in the binary resource set (if any), use the RemoveObject method.
ArgumentNullException | name is . |
ObjectDisposedException | The IExpandoResourceManager is already disposed. |
InvalidOperationException | The current IExpandoResourceManager is a HybridResourceManager, and Source is CompiledOnly. |