ResXDataNodeGetValue Method
Retrieves the object that is stored by this node.
Namespace: KGySoft.ResourcesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public Object? GetValue(
ITypeResolutionService? typeResolver = null,
string? basePath = null,
bool cleanupRawData = false
)
Public Function GetValue (
Optional typeResolver As ITypeResolutionService = Nothing,
Optional basePath As String = Nothing,
Optional cleanupRawData As Boolean = false
) As Object
public:
Object^ GetValue(
ITypeResolutionService^ typeResolver = nullptr,
String^ basePath = nullptr,
bool cleanupRawData = false
)
member GetValue :
?typeResolver : ITypeResolutionService *
?basePath : string *
?cleanupRawData : bool
(* Defaults:
let _typeResolver = defaultArg typeResolver null
let _basePath = defaultArg basePath null
let _cleanupRawData = defaultArg cleanupRawData false
*)
-> Object
- typeResolver ITypeResolutionService (Optional)
- A custom type resolution service to use for resolving type names. This parameter is optional.
Default value: . - basePath String (Optional)
- Defines a base path for file reference values. Used when FileRef is not .
If this parameter is , tries to use the original base path, if any. This parameter is optional.
Default value: . - cleanupRawData Boolean (Optional)
- to free the underlying XML data once the value is deserialized; otherwise, . This parameter is optional.
Default value: .
ObjectThe object that corresponds to the stored value.
When using this method make sure that the .resx data to be deserialized is from a trusted source.
This method might load assemblies during type resolve and allows resolving file references.
To disallow loading assemblies or resolving file references use the
GetValueSafe methods instead.
If the stored value currently exists in memory, it is returned directly.
If the resource is a file reference, GetValue tries to open the file and deserialize its content.
If the resource is not a file reference, GetValue tries to deserialize the value from the raw .resx string content.