Compartir a través de


prjOptionExplicit Enumeration

Used by the OptionExplicit property.

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

Syntax

'Declaration
<GuidAttribute("95DCFABC-145D-498D-A454-47F33D47139C")> _
Public Enumeration prjOptionExplicit
[GuidAttribute("95DCFABC-145D-498D-A454-47F33D47139C")]
public enum prjOptionExplicit
[GuidAttribute(L"95DCFABC-145D-498D-A454-47F33D47139C")]
public enum class prjOptionExplicit
[<GuidAttribute("95DCFABC-145D-498D-A454-47F33D47139C")>]
type prjOptionExplicit
public enum prjOptionExplicit

Members

Member name Description
prjOptionExplicitOff Variables do not need to be declared before use.
prjOptionExplicitOn Variables must be declared before use.

Remarks

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

See Also

Reference

VSLangProj Namespace

OptionExplicit

Other Resources

Option Explicit Statement (Visual Basic)