pkgOptionInfer Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether local type inference in declaring variables is used in the package.
public enum class pkgOptionInfer
public enum class pkgOptionInfer
enum pkgOptionInfer
[System.Runtime.InteropServices.Guid("39D4F2AE-776E-4948-BDA3-8DEE4C5D4ABD")]
public enum pkgOptionInfer
[<System.Runtime.InteropServices.Guid("39D4F2AE-776E-4948-BDA3-8DEE4C5D4ABD")>]
type pkgOptionInfer =
Public Enum pkgOptionInfer
- Inheritance
-
pkgOptionInfer
- Attributes
Fields
Name | Value | Description |
---|---|---|
pkgOptionInferOff | 0 | Disables local type inference in the package. |
pkgOptionInferOn | 1 | Enables local type inference in the package. |
Remarks
When you use pkgOptionInferOn, you can declare variables without explicitly stating a data type. The compiler infers the data type of a variable from the type of its initialization expression. For more information, see Option Infer Statement.