SyntaxFactory.Interpolation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Interpolation(ExpressionSyntax, InterpolationAlignmentClauseSyntax) |
表示内插字符串表达式中的表达式内插,例如“{expression[,alignment][:formatString]}”。 |
Interpolation(SyntaxToken, ExpressionSyntax, InterpolationAlignmentClauseSyntax, InterpolationFormatClauseSyntax, SyntaxToken) |
表示内插字符串表达式中的表达式内插,例如“{expression[,alignment][:formatString]}”。 |
Interpolation(ExpressionSyntax) |
表示内插字符串表达式中的表达式内插,例如“{expression[,alignment][:formatString]}”。 |
Interpolation(ExpressionSyntax, InterpolationAlignmentClauseSyntax)
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
表示内插字符串表达式中的表达式内插,例如“{expression[,alignment][:formatString]}”。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::InterpolationSyntax ^ Interpolation(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::VisualBasic::Syntax::InterpolationAlignmentClauseSyntax ^ alignmentClause);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationSyntax Interpolation (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationAlignmentClauseSyntax alignmentClause);
static member Interpolation : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationAlignmentClauseSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationSyntax
Public Shared Function Interpolation (expression As ExpressionSyntax, alignmentClause As InterpolationAlignmentClauseSyntax) As InterpolationSyntax
参数
- expression
- ExpressionSyntax
其格式化值应嵌入到结果字符串中的表达式。
- alignmentClause
- InterpolationAlignmentClauseSyntax
可选。 嵌入表达式的对齐子句“,对齐方式”。
返回
适用于
Interpolation(SyntaxToken, ExpressionSyntax, InterpolationAlignmentClauseSyntax, InterpolationFormatClauseSyntax, SyntaxToken)
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
表示内插字符串表达式中的表达式内插,例如“{expression[,alignment][:formatString]}”。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::InterpolationSyntax ^ Interpolation(Microsoft::CodeAnalysis::SyntaxToken openBraceToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::VisualBasic::Syntax::InterpolationAlignmentClauseSyntax ^ alignmentClause, Microsoft::CodeAnalysis::VisualBasic::Syntax::InterpolationFormatClauseSyntax ^ formatClause, Microsoft::CodeAnalysis::SyntaxToken closeBraceToken);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationSyntax Interpolation (Microsoft.CodeAnalysis.SyntaxToken openBraceToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationAlignmentClauseSyntax alignmentClause, Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationFormatClauseSyntax formatClause, Microsoft.CodeAnalysis.SyntaxToken closeBraceToken);
static member Interpolation : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationAlignmentClauseSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationFormatClauseSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationSyntax
Public Shared Function Interpolation (openBraceToken As SyntaxToken, expression As ExpressionSyntax, alignmentClause As InterpolationAlignmentClauseSyntax, formatClause As InterpolationFormatClauseSyntax, closeBraceToken As SyntaxToken) As InterpolationSyntax
参数
- openBraceToken
- SyntaxToken
左大括号“{”标记。
- expression
- ExpressionSyntax
其格式化值应嵌入到结果字符串中的表达式。
- alignmentClause
- InterpolationAlignmentClauseSyntax
可选。 嵌入表达式的对齐子句“,对齐方式”。
- formatClause
- InterpolationFormatClauseSyntax
可选。 嵌入表达式的格式字符串子句“:formatString”。
- closeBraceToken
- SyntaxToken
嵌入表达式的右大括号“}”标记。
返回
适用于
Interpolation(ExpressionSyntax)
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
表示内插字符串表达式中的表达式内插,例如“{expression[,alignment][:formatString]}”。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::InterpolationSyntax ^ Interpolation(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationSyntax Interpolation (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression);
static member Interpolation : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolationSyntax
Public Shared Function Interpolation (expression As ExpressionSyntax) As InterpolationSyntax
参数
- expression
- ExpressionSyntax
其格式化值应嵌入到结果字符串中的表达式。