VisualBasicCompilationOptions.WithOptimizationLevel(OptimizationLevel) Method

Definition

Creates a new VisualBasicCompilationOptions instance with a specified OptimizationLevel.

public:
 Microsoft::CodeAnalysis::VisualBasic::VisualBasicCompilationOptions ^ WithOptimizationLevel(Microsoft::CodeAnalysis::OptimizationLevel value);
public Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions WithOptimizationLevel (Microsoft.CodeAnalysis.OptimizationLevel value);
override this.WithOptimizationLevel : Microsoft.CodeAnalysis.OptimizationLevel -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions
Public Function WithOptimizationLevel (value As OptimizationLevel) As VisualBasicCompilationOptions

Parameters

Returns

A new instance of VisualBasicCompilationOptions, if the value is different; otherwise the current instance.

Applies to