共用方式為


CSharpParseOptions.WithLanguageVersion(LanguageVersion) 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::CSharpParseOptions ^ WithLanguageVersion(Microsoft::CodeAnalysis::CSharp::LanguageVersion version);
public Microsoft.CodeAnalysis.CSharp.CSharpParseOptions WithLanguageVersion (Microsoft.CodeAnalysis.CSharp.LanguageVersion version);
member this.WithLanguageVersion : Microsoft.CodeAnalysis.CSharp.LanguageVersion -> Microsoft.CodeAnalysis.CSharp.CSharpParseOptions
Public Function WithLanguageVersion (version As LanguageVersion) As CSharpParseOptions

參數

version
LanguageVersion

傳回

適用於