共用方式為


prjOptionStrict Enumeration

Used by the OptionStrict property.

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

Syntax

'Declaration
<GuidAttribute("CE6AA0FD-6CCD-4601-A730-FA75219862C3")> _
Public Enumeration prjOptionStrict
[GuidAttribute("CE6AA0FD-6CCD-4601-A730-FA75219862C3")]
public enum prjOptionStrict
[GuidAttribute(L"CE6AA0FD-6CCD-4601-A730-FA75219862C3")]
public enum class prjOptionStrict
[<GuidAttribute("CE6AA0FD-6CCD-4601-A730-FA75219862C3")>]
type prjOptionStrict
public enum prjOptionStrict

Members

Member name Description
prjOptionStrictOff Implicit conversions are allowed.
prjOptionStrictOn Implicit narrowing conversions are prohibited.

Remarks

Using prjOptionStrictOn prohibits implicit narrowing conversions, such as converting a long value to an integer value. Explicit conversions using CType and other conversion functions must be used instead.

See Also

Reference

VSLangProj Namespace

OptionStrict

Other Resources

Option Strict Statement