Megosztás a következőn keresztül:


pkgOptionExplicit Enumeration

Used by the OptionExplicit property.

Namespace:  VSLangProj2
Assembly:  VSLangProj2 (in VSLangProj2.dll)

Syntax

'Declaration
<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

Members

Member name Description
pkgOptionExplicitOff Variables do not need to be declared before use.
pkgOptionExplicitOn Variables must be declared before use.

Remarks

The value pkgOptionExplicitOn turns on checking for variable declaration. If you attempt to use an undeclared variable name, an error occurs at compile time. If you use pkgOptionExplicitOff, all undeclared variables are of Object type.

See Also

Reference

VSLangProj2 Namespace