Support.LoadResData Method

Definition

Loads data of several possible types from a resource (.res) file and returns a Byte array.

Overloads

LoadResData(Object, Object)
Obsolete.

Loads data of several possible types from a resource (.res) file.

LoadResData(Object, Object, CultureInfo)
Obsolete.

Loads data of several possible types from a resource (.res) file, specifying a locale.

LoadResData(Object, Object)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Loads data of several possible types from a resource (.res) file.

public:
 static System::Object ^ LoadResData(System::Object ^ ID, System::Object ^ restype);
public static object LoadResData (object ID, object restype);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static object LoadResData (object ID, object restype);
static member LoadResData : obj * obj -> obj
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member LoadResData : obj * obj -> obj
Public Function LoadResData (ID As Object, restype As Object) As Object

Parameters

ID
Object

An Object that specifies the data in the resource file.

restype
Object

An Object that specifies the resource type.

Returns

An Object that contains the resource.

Attributes

Remarks

In Visual Basic 6.0, international versions of an application were created by putting all localizable information, such as strings, into a separate resource file (.res) for each language. At run time, locale-specific resources were loaded from the resource file by calling the LoadResString, LoadResPicture, and LoadResData functions.

In Visual Basic, international versions of an application are created by changing the Language property of a form at design time. A separate resource file (.resx) is automatically created for each locale selected. You no longer have to explicitly load resources from code; resources are automatically loaded based on the user's locale. For more information, see Globalizing Windows Forms applications.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to

LoadResData(Object, Object, CultureInfo)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Loads data of several possible types from a resource (.res) file, specifying a locale.

public:
 static System::Object ^ LoadResData(System::Object ^ ID, System::Object ^ restype, System::Globalization::CultureInfo ^ Culture);
public static object LoadResData (object ID, object restype, System.Globalization.CultureInfo Culture);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static object LoadResData (object ID, object restype, System.Globalization.CultureInfo Culture);
static member LoadResData : obj * obj * System.Globalization.CultureInfo -> obj
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member LoadResData : obj * obj * System.Globalization.CultureInfo -> obj
Public Function LoadResData (ID As Object, restype As Object, Culture As CultureInfo) As Object

Parameters

ID
Object

An Object that specifies the data in the resource file.

restype
Object

An Object that specifies the resource type.

Culture
CultureInfo

A CultureInfo object that specifies the locale.

Returns

An Object that contains the resource.

Attributes

Remarks

In Visual Basic 6.0, international versions of an application were created by putting all localizable information, such as strings, into a separate resource file (.res) for each language. At run time, locale-specific resources were loaded from the resource file by calling the LoadResString, LoadResPicture, and LoadResData functions.

In Visual Basic, international versions of an application are created by changing the Language property of a form at design time. A separate resource file (.resx) is automatically created for each locale selected. You no longer have to explicitly load resources from code; resources are automatically loaded based on the user's locale. For more information, see Globalizing Windows Forms applications.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to