void SetMetaObject(
string name,
Object? value,
CultureInfo? culture = null
)
Sub SetMetaObject (
name As String,
value As Object,
Optional culture As CultureInfo = Nothing
)
void SetMetaObject(
String^ name,
Object^ value,
CultureInfo^ culture = nullptr
)
abstract SetMetaObject :
name : string *
value : Object *
?culture : CultureInfo
(* Defaults:
let _culture = defaultArg culture null
*)
-> unit
If value is , a null reference will be explicitly stored. Its effect is similar to the RemoveMetaObject method: the subsequent GetMetaObject calls with the same culture will return . However, enumerating the result set returned by GetExpandoResourceSet method will return the meta objects with value.
ArgumentNullException | name is . |
ObjectDisposedException | The IExpandoResourceManager is already disposed. |
InvalidOperationException | The current IExpandoResourceManager is a HybridResourceManager, and Source is CompiledOnly. |