Object? GetMetaObject(
string name,
CultureInfo? culture = null
)
Function GetMetaObject (
name As String,
Optional culture As CultureInfo = Nothing
) As Object
Object^ GetMetaObject(
String^ name,
CultureInfo^ culture = nullptr
)
abstract GetMetaObject :
name : string *
?culture : CultureInfo
(* Defaults:
let _culture = defaultArg culture null
*)
-> Object
Depending on the value of the CloneValues property, the GetMetaObject method returns either a full copy of the specified metadata, or always the same instance. For memory streams and byte arrays none of them are ideal because a full copy duplicates the inner buffer of a possibly large array of bytes, whereas returning the same stream instance can cause issues with conflicting positions or disposed state. Therefore the GetMetaStream method can be used to obtain a new read-only MemoryStream wrapper around the same internal buffer, regardless the current value of the CloneValues property.
String values are not duplicated in memory, regardless the value of the CloneValues property.
ArgumentNullException | name is . |
ObjectDisposedException | The IExpandoResourceManager is already disposed. |
MissingManifestResourceException | No usable set of localized resources has been found, and there are no default culture resources. For information about how to handle this exception, see the notes under Instantiating a ResXResourceManager object section of the description of the ResXResourceManager class. |