0 out of 1 rated this helpful - Rate this topic

ResXDataNode.GetValue Method (AssemblyName[])

Note: This method is new in the .NET Framework version 2.0.

Gets the object stored by this node.

Namespace: System.Resources
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public Object GetValue (
	AssemblyName[] names
)
public Object GetValue (
	AssemblyName[] names
)
public function GetValue (
	names : AssemblyName[]
) : Object

Parameters

names

The list of assemblies in which to look for the type of the object.

Return Value

The Object corresponding to the stored value.
Exception typeCondition

TypeLoadException

The corresponding type could not be found, or an appropriate type converter is not available.

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, then looks for a TypeConverter that can convert from a string to the appropriate object. If the resource is a file reference, GetValue attempts to deserialize it.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.