ResXDataNodeGetValueSafe(ITypeResolutionService, String, Boolean) Method

In safe mode neither typeResolver nor file references are allowed
Retrieves the object that is stored by this node, not allowing loading assemblies during the possible deserialization.
See the Remarks section of the other GetValueSafe overloads for details.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
[ObsoleteAttribute("In safe mode neither typeResolver nor file references are allowed")]
public Object? GetValueSafe(
	ITypeResolutionService? typeResolver,
	string? basePath = null,
	bool cleanupRawData = false
)

Parameters

typeResolver  ITypeResolutionService
Starting with version 8.0.0 this parameter must be .
basePath  String  (Optional)
Starting with version 8.0.0 this parameter is ignored because file references are not supported in safe mode. 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: .

Return Value

Object
The object that corresponds to the stored value.

Exceptions

TypeLoadExceptionThe corresponding type or its container assembly could not be loaded.
SerializationExceptionAn error occurred during the binary deserialization of the resource.
FileNotFoundExceptionThe resource is a file reference and the referenced file cannot be found.
NotSupportedExceptionUnsupported MIME type or an appropriate type converter is not available.
-or-
typeResolver is not .
-or-
FileRef is not .

See Also