VisualBasicParseOptions 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 VisualBasicParseOptions 的實例。
public VisualBasicParseOptions (Microsoft.CodeAnalysis.VisualBasic.LanguageVersion languageVersion = Microsoft.CodeAnalysis.VisualBasic.LanguageVersion.Default, Microsoft.CodeAnalysis.DocumentationMode documentationMode = Microsoft.CodeAnalysis.DocumentationMode.Parse, Microsoft.CodeAnalysis.SourceCodeKind kind = Microsoft.CodeAnalysis.SourceCodeKind.Regular, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> preprocessorSymbols = default);
new Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions : Microsoft.CodeAnalysis.VisualBasic.LanguageVersion * Microsoft.CodeAnalysis.DocumentationMode * Microsoft.CodeAnalysis.SourceCodeKind * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions
Public Sub New (Optional languageVersion As LanguageVersion = Microsoft.CodeAnalysis.VisualBasic.LanguageVersion.Default, Optional documentationMode As DocumentationMode = Microsoft.CodeAnalysis.DocumentationMode.Parse, Optional kind As SourceCodeKind = Microsoft.CodeAnalysis.SourceCodeKind.Regular, Optional preprocessorSymbols As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing)
參數
- languageVersion
- LanguageVersion
剖析器語言版本。
- documentationMode
- DocumentationMode
檔案模式。
- kind
- SourceCodeKind
原始程式碼的種類。SourceCodeKind
- preprocessorSymbols
- IEnumerable<KeyValuePair<String,Object>>
KeyValuePair 的可列舉序列,代表預處理器符號。