Udostępnij za pośrednictwem


VisualBasicCompilationOptions Class

Definition

A class representing Visual Basic compilation Options.

public ref class VisualBasicCompilationOptions sealed : Microsoft::CodeAnalysis::CompilationOptions, IEquatable<Microsoft::CodeAnalysis::VisualBasic::VisualBasicCompilationOptions ^>
public sealed class VisualBasicCompilationOptions : Microsoft.CodeAnalysis.CompilationOptions, IEquatable<Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions>
type VisualBasicCompilationOptions = class
    inherit CompilationOptions
    interface IEquatable<VisualBasicCompilationOptions>
Public NotInheritable Class VisualBasicCompilationOptions
Inherits CompilationOptions
Implements IEquatable(Of VisualBasicCompilationOptions)
Inheritance
VisualBasicCompilationOptions
Implements

Constructors

VisualBasicCompilationOptions(OutputKind, Boolean, String, String, String, IEnumerable<GlobalImport>, String, OptionStrict, Boolean, Boolean, Boolean, VisualBasicParseOptions, Boolean, OptimizationLevel, Boolean, String, String, ImmutableArray<Byte>, Nullable<Boolean>, Platform, ReportDiagnostic, IEnumerable<KeyValuePair<String, ReportDiagnostic>>, Boolean, Boolean, XmlReferenceResolver, SourceReferenceResolver, MetadataReferenceResolver, AssemblyIdentityComparer, StrongNameProvider)
VisualBasicCompilationOptions(OutputKind, String, String, String, IEnumerable<GlobalImport>, String, OptionStrict, Boolean, Boolean, Boolean, VisualBasicParseOptions, Boolean, OptimizationLevel, Boolean, String, String, ImmutableArray<Byte>, Nullable<Boolean>, Platform, ReportDiagnostic, IEnumerable<KeyValuePair<String, ReportDiagnostic>>, Boolean, Boolean, XmlReferenceResolver, SourceReferenceResolver, MetadataReferenceResolver, AssemblyIdentityComparer, StrongNameProvider, Boolean, Boolean, MetadataImportOptions)

Initializes a new instance of the VisualBasicCompilationOptions type with various options.

VisualBasicCompilationOptions(OutputKind, String, String, String, IEnumerable<GlobalImport>, String, OptionStrict, Boolean, Boolean, Boolean, VisualBasicParseOptions, Boolean, OptimizationLevel, Boolean, String, String, ImmutableArray<Byte>, Nullable<Boolean>, Platform, ReportDiagnostic, IEnumerable<KeyValuePair<String, ReportDiagnostic>>, Boolean, Boolean, XmlReferenceResolver, SourceReferenceResolver, MetadataReferenceResolver, AssemblyIdentityComparer, StrongNameProvider, Boolean, Boolean)
VisualBasicCompilationOptions(OutputKind, String, String, String, IEnumerable<GlobalImport>, String, OptionStrict, Boolean, Boolean, Boolean, VisualBasicParseOptions, Boolean, OptimizationLevel, Boolean, String, String, ImmutableArray<Byte>, Nullable<Boolean>, Platform, ReportDiagnostic, IEnumerable<KeyValuePair<String, ReportDiagnostic>>, Boolean, Boolean, XmlReferenceResolver, SourceReferenceResolver, MetadataReferenceResolver, AssemblyIdentityComparer, StrongNameProvider)
VisualBasicCompilationOptions(OutputKind, String, String, String, IEnumerable<GlobalImport>, String, OptionStrict, Boolean, Boolean, Boolean, VisualBasicParseOptions, Boolean, OptimizationLevel, Boolean, String, String, ImmutableArray<Byte>, Nullable<Boolean>, Platform, ReportDiagnostic, IEnumerable<KeyValuePair<String, ReportDiagnostic>>, Boolean, XmlReferenceResolver, SourceReferenceResolver, MetadataReferenceResolver, AssemblyIdentityComparer, StrongNameProvider)

Properties

AssemblyIdentityComparer

Used to compare assembly identities. May implement unification and portability policies specific to the target platform. Default if not specified.

(Inherited from CompilationOptions)
CheckOverflow

Whether bounds checking on integer arithmetic is enforced by default or not.

(Inherited from CompilationOptions)
ConcurrentBuild

Specifies whether building compilation may use multiple threads.

(Inherited from CompilationOptions)
CryptoKeyContainer

The CSP container containing the key with which to sign the output.

(Inherited from CompilationOptions)
CryptoKeyFile

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)
CryptoPublicKey

Specifies public key used to generate strong name for the compilation assembly, or empty if not specified.

(Inherited from CompilationOptions)
DelaySign

Mark the compilation assembly as delay-signed.

(Inherited from CompilationOptions)
Deterministic

Specifies whether the compilation should be deterministic.

(Inherited from CompilationOptions)
EmbedVbCoreRuntime

Gets the Embed Visual Basic Core Runtime setting.

Errors

Errors collection related to an incompatible set of compilation options

(Inherited from CompilationOptions)
Features
Obsolete.

A set of strings designating experimental compiler features that are to be enabled.

(Inherited from CompilationOptions)
GeneralDiagnosticOption

Global warning report option

(Inherited from CompilationOptions)
GlobalImports

Gets the global imports collection.

Language
MainTypeName

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)
MetadataImportOptions

Specifies whether to import members with accessibility other than public or protected by default. Default value is Public. The value specified is not going to affect correctness of analysis performed by compilers because all members needed for correctness are going to be imported regardless. This setting can force compilation to import members that it normally doesn't.

(Inherited from CompilationOptions)
MetadataReferenceResolver

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)
ModuleName

Name of the primary module, or null if a default name should be used.

(Inherited from CompilationOptions)
NullableContextOptions
NullableContextOptions

Gets the default nullable context state in this compilation.

(Inherited from CompilationOptions)
OptimizationLevel

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)
OptionCompareText

Gets the Option Compare Text setting.

OptionExplicit

Gets the Option Explicit setting.

OptionInfer

Gets the Option Infer setting.

OptionStrict

Gets the Option Strict Setting.

OutputKind

The kind of assembly generated when emitted.

(Inherited from CompilationOptions)
ParseOptions

Gets the Parse Options setting. Compilation level parse options. Used when compiling synthetic embedded code such as My template

Platform

Specifies which version of the common language runtime (CLR) can run the assembly.

(Inherited from CompilationOptions)
PublicSign

Mark the compilation assembly as fully signed, but only sign with the public key.

(Inherited from CompilationOptions)
ReportSuppressedDiagnostics

Whether diagnostics suppressed in source, i.e. IsSuppressed is true, should be reported.

(Inherited from CompilationOptions)
RootNamespace

Gets the default namespace for all source code in the project. Corresponds to the "RootNamespace" project option or the "/rootnamespace" command line option.

ScriptClassName

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)
SourceReferenceResolver

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)
SpecificDiagnosticOptions

Warning report option for each warning.

(Inherited from CompilationOptions)
StrongNameProvider

Provides strong name and signature the source assembly. Null if assembly signing is not supported.

(Inherited from CompilationOptions)
SyntaxTreeOptionsProvider

Provider to retrieve options for particular syntax trees.

(Inherited from CompilationOptions)
WarningLevel

Global warning level (a non-negative integer).

(Inherited from CompilationOptions)
XmlReferenceResolver

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)

Methods

CommonWithAssemblyIdentityComparer(AssemblyIdentityComparer) (Inherited from CompilationOptions)
CommonWithCheckOverflow(Boolean) (Inherited from CompilationOptions)
CommonWithConcurrentBuild(Boolean) (Inherited from CompilationOptions)
CommonWithCryptoKeyContainer(String) (Inherited from CompilationOptions)
CommonWithCryptoKeyFile(String) (Inherited from CompilationOptions)
CommonWithCryptoPublicKey(ImmutableArray<Byte>) (Inherited from CompilationOptions)
CommonWithDelaySign(Nullable<Boolean>) (Inherited from CompilationOptions)
CommonWithDeterministic(Boolean) (Inherited from CompilationOptions)
CommonWithFeatures(ImmutableArray<String>)
Obsolete.
(Inherited from CompilationOptions)
CommonWithGeneralDiagnosticOption(ReportDiagnostic) (Inherited from CompilationOptions)
CommonWithMainTypeName(String) (Inherited from CompilationOptions)
CommonWithMetadataImportOptions(MetadataImportOptions) (Inherited from CompilationOptions)
CommonWithMetadataReferenceResolver(MetadataReferenceResolver) (Inherited from CompilationOptions)
CommonWithModuleName(String) (Inherited from CompilationOptions)
CommonWithOptimizationLevel(OptimizationLevel) (Inherited from CompilationOptions)
CommonWithOutputKind(OutputKind) (Inherited from CompilationOptions)
CommonWithPlatform(Platform) (Inherited from CompilationOptions)
CommonWithPublicSign(Boolean) (Inherited from CompilationOptions)
CommonWithReportSuppressedDiagnostics(Boolean) (Inherited from CompilationOptions)
CommonWithScriptClassName(String) (Inherited from CompilationOptions)
CommonWithSourceReferenceResolver(SourceReferenceResolver) (Inherited from CompilationOptions)
CommonWithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<String,ReportDiagnostic>>) (Inherited from CompilationOptions)
CommonWithSpecificDiagnosticOptions(ImmutableDictionary<String,ReportDiagnostic>) (Inherited from CompilationOptions)
CommonWithStrongNameProvider(StrongNameProvider) (Inherited from CompilationOptions)
CommonWithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider) (Inherited from CompilationOptions)
CommonWithXmlReferenceResolver(XmlReferenceResolver) (Inherited from CompilationOptions)
ComputeHashCode() (Inherited from CompilationOptions)
Equals(Object)

Indicates whether the current object is equal to another object.

Equals(VisualBasicCompilationOptions)

Determines whether the current object is equal to another object of the same type.

EqualsHelper(CompilationOptions) (Inherited from CompilationOptions)
GetHashCode()

Creates a hashcode for this instance.

GetHashCode() (Inherited from CompilationOptions)
GetHashCodeHelper() (Inherited from CompilationOptions)
WithAssemblyIdentityComparer(AssemblyIdentityComparer)
WithConcurrentBuild(Boolean)

Creates a new VisualBasicCompilationOptions instance with a different concurrent build specified.

WithCryptoKeyContainer(String)

Creates a new VisualBasicCompilationOptions instance with a different cryptography key container specified

WithCryptoKeyFile(String)

Creates a new VisualBasicCompilationOptions instance with a different cryptography key file path specified.

WithCryptoPublicKey(ImmutableArray<Byte>)

Creates a new VisualBasicCompilationOptions instance with a different public key.

WithDelaySign(Nullable<Boolean>)

Creates a new VisualBasicCompilationOptions instance with a different delay signing specified.

WithDeterministic(Boolean)

Creates a new VisualBasicCompilationOptions instance with a different deterministic mode specified.

WithEmbedVbCoreRuntime(Boolean)

Creates a new VisualBasicCompilationOptions instance with a different Embed VB Core Runtime specified.

WithGeneralDiagnosticOption(ReportDiagnostic)

Creates a new VisualBasicCompilationOptions instance with a different report warning specified.

WithGlobalImports(GlobalImport[])

Creates a new VisualBasicCompilationOptions instance with a different global imports specified.

WithGlobalImports(IEnumerable<GlobalImport>)

Creates a new VisualBasicCompilationOptions instance with a different global imports specified.

WithGlobalImports(ImmutableArray<GlobalImport>)

Creates a new VisualBasicCompilationOptions instance with a different global imports specified.

WithMainTypeName(String)

Creates a new VisualBasicCompilationOptions instance with a different Main Type name specified.

WithMetadataImportOptions(MetadataImportOptions)

Creates a new VisualBasicCompilationOptions instance with a specified MetadataImportOptions.

WithMetadataReferenceResolver(MetadataReferenceResolver)
WithModuleName(String)

Creates a new VisualBasicCompilationOptions instance With a different ModuleName specified.

WithOptimizationLevel(OptimizationLevel)

Creates a new VisualBasicCompilationOptions instance with a specified OptimizationLevel.

WithOptionCompareText(Boolean)

Creates a new VisualBasicCompilationOptions instance with a different Option Compare Text specified.

WithOptionExplicit(Boolean)

Creates a new VisualBasicCompilationOptions instance with a different option explicit specified.

WithOptionInfer(Boolean)

Creates a new VisualBasicCompilationOptions instance with a different option infer specified.

WithOptionStrict(OptionStrict)

Creates a new VisualBasicCompilationOptions instance with a different option strict specified.

WithOutputKind(OutputKind)

Creates a new VisualBasicCompilationOptions instance with a different OutputKind specified.

WithOverflowChecks(Boolean)

Creates a new VisualBasicCompilationOptions instance with a different Overflow checks specified.

WithParseOptions(VisualBasicParseOptions)

Creates a new VisualBasicCompilationOptions instance with a different parse option specified.

WithPlatform(Platform)

Creates a new VisualBasicCompilationOptions instance with a different platform specified.

WithPublicSign(Boolean)
WithReportSuppressedDiagnostics(Boolean)

Creates a new VisualBasicCompilationOptions instance with specified suppress diagnostics reporting option.

WithRootNamespace(String)

Creates a new VisualBasicCompilationOptions instance with a different root namespace specified.

WithScriptClassName(String)

Creates a new VisualBasicCompilationOptions instance with a Script Class Name specified.

WithSourceReferenceResolver(SourceReferenceResolver)
WithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<String,ReportDiagnostic>>)

Creates a new VisualBasicCompilationOptions instance with different specific warnings specified.

WithSpecificDiagnosticOptions(ImmutableDictionary<String,ReportDiagnostic>)

Creates a new VisualBasicCompilationOptions instance with different specific warnings specified.

WithStrongNameProvider(StrongNameProvider)
WithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider)
WithSyntaxTreeOptionsProvider(SyntaxTreeOptionsProvider) (Inherited from CompilationOptions)
WithXmlReferenceResolver(XmlReferenceResolver)

Applies to