LoadResConstants LoadResConstants LoadResConstants LoadResConstants Enum

定义

警告

此 API 现已过时。

提供常量以与 Visual Basic 6.0 LoadResPicture 函数保持兼容。Provides constants for compatibility with the Visual Basic 6.0 LoadResPicture function.

public enum class LoadResConstants
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public enum LoadResConstants
type LoadResConstants = 
Public Enum LoadResConstants
继承
LoadResConstantsLoadResConstantsLoadResConstantsLoadResConstants
属性

字段

ResBitmap ResBitmap ResBitmap ResBitmap 0

等效于 Visual Basic 6.0 常量 vbResBitmapEquivalent to the Visual Basic 6.0 constant vbResBitmap.

ResCursor ResCursor ResCursor ResCursor 2

等效于 Visual Basic 6.0 常量 vbResCursorEquivalent to the Visual Basic 6.0 constant vbResCursor.

ResIcon ResIcon ResIcon ResIcon 1

等效于 Visual Basic 6.0 常量 vbResIconEquivalent to the Visual Basic 6.0 constant vbResIcon.

注解

在 Visual Basic 6.0 中, LoadResPicture函数用于从文件中加载资源LoadResPicture ; 常数指定了要加载的资源类型。In Visual Basic 6.0, the LoadResPicture function was used to load a resource from a file; the LoadResPicture constants specified the type of resource to load. 在 Visual Basic 中, LoadResPicture不再支持该函数。In Visual Basic, the LoadResPicture function is no longer supported.

这些常量使已从 Visual Basic 6.0 升级的代码可以继续运行, 而无需进行其他修改。These constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional modification.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。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. 大多数情况下,这些函数和对象可再现 .NET Framework.NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有 Visual Basic 6.0 代码模型与 .NET Framework.NET Framework 实现有显著区别时才需要这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.

适用于

另请参阅