KGy SOFT

ResXDataNodeGetValue Method

KGy SOFT Core Libraries Help
Retrieves the object that is stored by this node.

Namespace:  KGySoft.Resources
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0
Syntax

public Object GetValue(
	ITypeResolutionService typeResolver = null,
	string basePath = null,
	bool cleanupRawData = false
)

Parameters

typeResolver (Optional)
Type: System.ComponentModel.DesignITypeResolutionService
A custom type resolution service to use for resolving type names.
Default value: .
basePath (Optional)
Type: SystemString
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.
Default value: .
cleanupRawData (Optional)
Type: SystemBoolean
 to free the underlying XML data once the value is deserialized; otherwise, .
Default value: .

Return Value

Type: Object
The object that corresponds to the stored value.
Exceptions

ExceptionCondition
TypeLoadExceptionThe corresponding type or its container assembly could not be loaded.
FileNotFoundExceptionThe resource is a file reference and the referenced file cannot be found.
NotSupportedExceptionUnsupported MIME type or an appropriate type converter is not available.
Remarks

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 string content stored in the .resx file.

See Also

Reference