Click or drag to resize

VisualBasicCompilationOptions Class



A class representing Visual Basic compilation Options.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysisCompilationOptions
    Microsoft.CodeAnalysis.VisualBasicVisualBasicCompilationOptions

Namespace:  Microsoft.CodeAnalysis.VisualBasic
Assembly:  Microsoft.CodeAnalysis.VisualBasic (in Microsoft.CodeAnalysis.VisualBasic.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class VisualBasicCompilationOptions : CompilationOptions, 
	IEquatable

The VisualBasicCompilationOptions type exposes the following members.

Constructors
  NameDescription
Public methodVisualBasicCompilationOptions(OutputKind, String, String, String, IEnumerableT, Void, GlobalImport, String, OptionStrict, Boolean, Boolean, Boolean, VisualBasicParseOptions, Boolean, OptimizationLevel, Boolean, String, String, ImmutableArrayByte, NullableT, Void, Boolean, Platform, ReportDiagnostic, IEnumerableT, Void, KeyValuePairTKey, TValue)
Initializes a new instance of the VisualBasicCompilationOptions class
Public methodVisualBasicCompilationOptions(OutputKind, String, String, String, IEnumerableT, Void, GlobalImport, String, OptionStrict, Boolean, Boolean, Boolean, VisualBasicParseOptions, Boolean, OptimizationLevel, Boolean, String, String, ImmutableArrayByte, NullableT, Void, Boolean, Platform, ReportDiagnostic, IEnumerableT, Void, KeyValuePairTKey, TValue, Boolean)
Initializes a new instance of the VisualBasicCompilationOptions class
Public methodVisualBasicCompilationOptions(OutputKind, Boolean, String, String, String, IEnumerableT, Void, GlobalImport, String, OptionStrict, Boolean, Boolean, Boolean, VisualBasicParseOptions, Boolean, OptimizationLevel, Boolean, String, String, ImmutableArrayByte, NullableT, Void, Boolean, Platform, ReportDiagnostic, IEnumerableT, Void, KeyValuePairTKey, TValue, Boolean)
Initializes a new instance of the VisualBasicCompilationOptions class
Public methodVisualBasicCompilationOptions(OutputKind, String, String, String, IEnumerableT, Void, GlobalImport, String, OptionStrict, Boolean, Boolean, Boolean, VisualBasicParseOptions, Boolean, OptimizationLevel, Boolean, String, String, ImmutableArrayByte, NullableT, Void, Boolean, Platform, ReportDiagnostic, IEnumerableT, Void, KeyValuePairTKey, TValue, Boolean, String, ReportDiagnostic)
Initializes a new instance of the VisualBasicCompilationOptions class
Top
Properties
  NameDescription
Public propertyAssemblyIdentityComparer
Used to compare assembly identities. May implement unification and portability policies specific to the target platform. Default if not specified.
(Inherited from CompilationOptions.)
Public propertyCheckOverflow
Whether bounds checking on integer arithmetic is enforced by default or not.
(Inherited from CompilationOptions.)
Public propertyConcurrentBuild
Specifies whether building compilation may use multiple threads.
(Inherited from CompilationOptions.)
Public propertyCryptoKeyContainer
The CSP container containing the key with which to sign the output.
(Inherited from CompilationOptions.)
Public propertyCryptoKeyFile
The name of the file containing the public and private keys to use to generate strong name of the compilation assembly and to sign it.
(Inherited from CompilationOptions.)
Public propertyCryptoPublicKey
Specifies public key used to generate strong name for the compilation assembly, or empty if not specified.
(Inherited from CompilationOptions.)
Public propertyDelaySign
Mark the compilation assembly as delay-signed.
(Inherited from CompilationOptions.)
Public propertyDeterministic
Specifies whether the compilation should be deterministic.
(Inherited from CompilationOptions.)
Public propertyEmbedVbCoreRuntime
Gets the Embed Visual Basic Core Runtime setting.
Public propertyErrors
Errors collection related to an incompatible set of compilation options
(Inherited from CompilationOptions.)
Public propertyGeneralDiagnosticOption
Global warning report option
(Inherited from CompilationOptions.)
Public propertyGlobalImports
Gets the global imports collection.
Public propertyLanguage (Overrides CompilationOptionsLanguage.)
Public propertyMainTypeName
The full name of a type that declares static Main method. Must be a valid non-generic namespace-qualified name. Null if any static Main method is a candidate for an entry point.
(Inherited from CompilationOptions.)
Public propertyMetadataReferenceResolver
Resolves paths to metadata references specified in source via #r directives. Null if the compilation can't contain references to metadata other than those explicitly passed to its factory (such as #r directives in sources).
(Inherited from CompilationOptions.)
Public propertyModuleName
Name of the primary module, or null if a default name should be used.
(Inherited from CompilationOptions.)
Public propertyOptimizationLevel
Specifies whether or not optimizations should be performed on the output IL. This is independent of whether or not PDB information is generated.
(Inherited from CompilationOptions.)
Public propertyOptionCompareText
Gets the Option Compare Text setting.
Public propertyOptionExplicit
Gets the Option Explicit setting.
Public propertyOptionInfer
Gets the Option Infer setting.
Public propertyOptionStrict
Gets the Option Strict Setting.
Public propertyOutputKind
The kind of assembly generated when emitted.
(Inherited from CompilationOptions.)
Public propertyParseOptions
Gets the Parse Options setting. Compilation level parse options. Used when compiling synthetic embedded code such as My template
Public propertyPlatform
Specifies which version of the common language runtime (CLR) can run the assembly.
(Inherited from CompilationOptions.)
Public propertyPublicSign
Mark the compilation assembly as fully signed, but only sign with the public key.
(Inherited from CompilationOptions.)
Public propertyReportSuppressedDiagnostics
Whether diagnostics suppressed in source, i.e. IsSuppressed is true, should be reported.
(Inherited from CompilationOptions.)
Public propertyRootNamespace
Gets the default namespace for all source code in the project. Corresponds to the "RootNamespace" project option or the "/rootnamespace" command line option.
Public propertyScriptClassName
The full name of a global implicit class (script class). This class implicitly encapsulates top-level statements, type declarations, and member declarations. Could be a namespace qualified name.
(Inherited from CompilationOptions.)
Public propertySourceReferenceResolver
Gets the resolver for resolving source document references for the compilation. Null if the compilation is not allowed to contain source file references, such as #line pragmas and #load directives.
(Inherited from CompilationOptions.)
Public propertySpecificDiagnosticOptions
Warning report option for each warning.
(Inherited from CompilationOptions.)
Public propertyStrongNameProvider
Provides strong name and signature the source assembly. Null if assembly signing is not supported.
(Inherited from CompilationOptions.)
Public propertyWarningLevel
Global warning level (from 0 to 4).
(Inherited from CompilationOptions.)
Public propertyXmlReferenceResolver
Gets the resolver for resolving XML document references for the compilation. Null if the compilation is not allowed to contain XML file references, such as XML doc comment include tags and permission sets stored in an XML file.
(Inherited from CompilationOptions.)
Top
Methods
  NameDescription
Public methodEquals(Object)
Indicates whether the current object is equal to another object.
(Overrides CompilationOptionsEquals(Object).)
Public methodEquals(VisualBasicCompilationOptions)
Determines whether the current object is equal to another object of the same type.
Public methodGetHashCode
Creates a hashcode for this instance.
(Overrides CompilationOptionsGetHashCode.)
Public methodWithAssemblyIdentityComparer
Public methodWithConcurrentBuild
Creates a new VisualBasicCompilationOptions instance with a different concurrent build specified.
Public methodWithCryptoKeyContainer
Creates a new VisualBasicCompilationOptions instance with a different cryptography key container specified
Public methodWithCryptoKeyFile
Creates a new VisualBasicCompilationOptions instance with a different cryptography key file path specified.
Public methodWithCryptoPublicKey(ImmutableArrayByte) (Inherited from CompilationOptions.)
Public methodWithCryptoPublicKey(ImmutableArrayByte)
Creates a new VisualBasicCompilationOptions instance with a different public key.
Public methodWithDelaySign(NullableT) (Inherited from CompilationOptions.)
Public methodWithDelaySign(NullableT)
Public methodWithDeterministic
Creates a new VisualBasicCompilationOptions instance with a different deterministic mode specified. The deterministic mode.

Return Value

Type: 
A new instance of VisualBasicCompilationOptions, if the deterministic mode is different; otherwise the current instance.
Public methodWithEmbedVbCoreRuntime
Creates a new VisualBasicCompilationOptions instance with a different Embed VB Core Runtime specified.
Public methodWithGeneralDiagnosticOption
Creates a new VisualBasicCompilationOptions instance with a different report warning specified.
Public methodWithGlobalImports(IEnumerableT)
Public methodWithGlobalImports(GlobalImport)
Creates a new VisualBasicCompilationOptions instance with a different global imports specified.
Public methodWithGlobalImports(ImmutableArrayGlobalImport)
Creates a new VisualBasicCompilationOptions instance with a different global imports specified.
Public methodWithMainTypeName
Creates a new VisualBasicCompilationOptions instance with a different Main Type name specified.
Public methodWithMetadataReferenceResolver
Public methodWithModuleName
Creates a new VisualBasicCompilationOptions instance With a different ModuleName specified.
Public methodWithOptimizationLevel
Creates a new VisualBasicCompilationOptions instance with a specified OptimizationLevel.
Public methodWithOptionCompareText
Creates a new VisualBasicCompilationOptions instance with a different Option Compare Text specified.
Public methodWithOptionExplicit
Creates a new VisualBasicCompilationOptions instance with a different option explicit specified.
Public methodWithOptionInfer
Creates a new VisualBasicCompilationOptions instance with a different option infer specified.
Public methodWithOptionStrict
Creates a new VisualBasicCompilationOptions instance with a different option strict specified.
Public methodWithOutputKind
Creates a new VisualBasicCompilationOptions instance with a different OutputKind specified.
Public methodWithOverflowChecks
Creates a new VisualBasicCompilationOptions instance with a different Overflow checks specified.
Public methodWithParseOptions
Creates a new VisualBasicCompilationOptions instance with a different parse option specified.
Public methodWithPlatform
Creates a new VisualBasicCompilationOptions instance with a different platform specified.
Public methodWithPublicSign
Public methodWithReportSuppressedDiagnostics
Creates a new VisualBasicCompilationOptions instance with specified suppress diagnostics reporting option.
Public methodWithRootNamespace
Creates a new VisualBasicCompilationOptions instance with a different root namespace specified.
Public methodWithScriptClassName
Creates a new VisualBasicCompilationOptions instance with a Script Class Name specified.
Public methodWithSourceReferenceResolver
Public methodWithSpecificDiagnosticOptions(IEnumerableT) (Inherited from CompilationOptions.)
Public methodWithSpecificDiagnosticOptions(ImmutableDictionaryString, ReportDiagnostic)
Creates a new options instance with the specified diagnostic-specific options.
(Inherited from CompilationOptions.)
Public methodWithSpecificDiagnosticOptions(IEnumerableT)
Public methodWithSpecificDiagnosticOptions(ImmutableDictionaryString, ReportDiagnostic)
Creates a new VisualBasicCompilationOptions instance with different specific warnings specified.
Public methodWithStrongNameProvider
Public methodWithXmlReferenceResolver
Top
See Also