ResXDataNode.GetValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the object that is stored by this node.
Overloads
GetValue(ITypeResolutionService) |
Retrieves the object that is stored by this node by using the specified type resolution service. |
GetValue(AssemblyName[]) |
Retrieves the object that is stored by this node by searching the specified assemblies. |
GetValue(ITypeResolutionService)
Retrieves the object that is stored by this node by using the specified type resolution service.
public:
System::Object ^ GetValue(System::ComponentModel::Design::ITypeResolutionService ^ typeResolver);
public object GetValue (System.ComponentModel.Design.ITypeResolutionService typeResolver);
public object? GetValue (System.ComponentModel.Design.ITypeResolutionService? typeResolver);
member this.GetValue : System.ComponentModel.Design.ITypeResolutionService -> obj
Public Function GetValue (typeResolver As ITypeResolutionService) As Object
Parameters
- typeResolver
- ITypeResolutionService
The type resolution service to use when looking for a type converter.
Returns
The object that corresponds to the stored value.
Exceptions
The corresponding type could not be found, or an appropriate type converter is not available.
Remarks
If the stored value currently exists in memory, it is returned directly. If it is stored in the resource file and it is not a file reference, GetValue looks for a TypeConverter by using the specified type resolution service that can convert from a string to the appropriate object. If the resource is a file reference, GetValue tries to de-serialize it.
Applies to
GetValue(AssemblyName[])
Retrieves the object that is stored by this node by searching the specified assemblies.
public:
System::Object ^ GetValue(cli::array <System::Reflection::AssemblyName ^> ^ names);
public object GetValue (System.Reflection.AssemblyName[] names);
public object? GetValue (System.Reflection.AssemblyName[]? names);
member this.GetValue : System.Reflection.AssemblyName[] -> obj
Public Function GetValue (names As AssemblyName()) As Object
Parameters
- names
- AssemblyName[]
The list of assemblies to search for the type of the object.
Returns
The object that corresponds to the stored value.
Exceptions
The corresponding type could not be found, or an appropriate type converter is not available.
Remarks
If the stored value currently exists in memory, it is returned directly. If it is stored in the resource file and it is not a file reference, GetValue looks in the assemblies identified by names to find the object's corresponding type, and then looks for a TypeConverter that can convert from a string to the appropriate object. If the resource is a file reference, GetValue tries to deserialize it.