Share via


pkgOptionExplicit 枚举

OptionExplicit 属性使用。

命名空间:  VSLangProj2
程序集:  VSLangProj2(在 VSLangProj2.dll 中)

语法

声明
<GuidAttribute("06954624-6A04-4EDD-9254-B86FD55D56EF")> _
Public Enumeration pkgOptionExplicit
[GuidAttribute("06954624-6A04-4EDD-9254-B86FD55D56EF")]
public enum pkgOptionExplicit
[GuidAttribute(L"06954624-6A04-4EDD-9254-B86FD55D56EF")]
public enum class pkgOptionExplicit
[<GuidAttribute("06954624-6A04-4EDD-9254-B86FD55D56EF")>]
type pkgOptionExplicit
public enum pkgOptionExplicit

成员

成员名称 说明
pkgOptionExplicitOff 变量在使用前不需声明。
pkgOptionExplicitOn 变量在使用前必须声明。

备注

值 pkgOptionExplicitOn 打开变量声明检查。 如果尝试使用未声明的变量名,编译时将发生错误。 如果使用 pkgOptionExplicitOff,则所有未声明的变量都是 Object 类型。

请参阅

参考

VSLangProj2 命名空间