共用方式為


Workspace.Options 屬性

定義

警告

Workspace options should be set by invoking 'workspace.TryApplyChanges(workspace.CurrentSolution.WithOptions(newOptionSet))'

取得或設定所有全域選項和 Options 的集合。 Setter 也會強制更新 CurrentSolution ,使 更新為 。 Options

public:
 property Microsoft::CodeAnalysis::Options::OptionSet ^ Options { Microsoft::CodeAnalysis::Options::OptionSet ^ get(); void set(Microsoft::CodeAnalysis::Options::OptionSet ^ value); };
public Microsoft.CodeAnalysis.Options.OptionSet Options { get; set; }
public Microsoft.CodeAnalysis.Options.OptionSet Options { get; [System.Obsolete("Workspace options should be set by invoking 'workspace.TryApplyChanges(workspace.CurrentSolution.WithOptions(newOptionSet))'")] set; }
member this.Options : Microsoft.CodeAnalysis.Options.OptionSet with get, set
[<set: System.Obsolete("Workspace options should be set by invoking 'workspace.TryApplyChanges(workspace.CurrentSolution.WithOptions(newOptionSet))'")>]
member this.Options : Microsoft.CodeAnalysis.Options.OptionSet with get, set
Public Property Options As OptionSet

屬性值

屬性

適用於