VisualBasicSyntaxTree.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(VisualBasicSyntaxNode, VisualBasicParseOptions, String, Encoding)
從語法節點建立新的語法樹狀結構。
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode root, Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions options = default, string path = "", System.Text.Encoding encoding = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode root, Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions options, string path, System.Text.Encoding encoding);
static member Create : Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode * Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions * string * System.Text.Encoding -> Microsoft.CodeAnalysis.SyntaxTree
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member Create : Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode * Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions * string * System.Text.Encoding -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function Create (root As VisualBasicSyntaxNode, Optional options As VisualBasicParseOptions = Nothing, Optional path As String = "", Optional encoding As Encoding = Nothing) As SyntaxTree
Public Shared Function Create (root As VisualBasicSyntaxNode, options As VisualBasicParseOptions, path As String, encoding As Encoding) As SyntaxTree
參數
- options
- VisualBasicParseOptions
- path
- String
- encoding
- Encoding
傳回
- 屬性
適用於
Create(VisualBasicSyntaxNode, VisualBasicParseOptions, String, Encoding, ImmutableDictionary<String,ReportDiagnostic>)
從語法節點建立新的語法樹狀結構。
public static Microsoft.CodeAnalysis.SyntaxTree Create (Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode root, Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions options = default, string path = "", System.Text.Encoding encoding = default, System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> diagnosticOptions = default);
static member Create : Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxNode * Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions * string * System.Text.Encoding * System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> -> Microsoft.CodeAnalysis.SyntaxTree
Public Shared Function Create (root As VisualBasicSyntaxNode, Optional options As VisualBasicParseOptions = Nothing, Optional path As String = "", Optional encoding As Encoding = Nothing, Optional diagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic) = Nothing) As SyntaxTree
參數
- options
- VisualBasicParseOptions
- path
- String
- encoding
- Encoding
- diagnosticOptions
- ImmutableDictionary<String,ReportDiagnostic>
過時的參數。 現在應該使用 傳遞診斷選項 SyntaxTreeOptionsProvider