SyntaxFactory.InterpolatedStringExpression 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
InterpolatedStringExpression(SyntaxToken, SyntaxToken) |
建立新的 InterpolatedStringExpressionSyntax 實例。 |
InterpolatedStringExpression(SyntaxToken) |
建立新的 InterpolatedStringExpressionSyntax 實例。 |
InterpolatedStringExpression(SyntaxToken, SyntaxList<InterpolatedStringContentSyntax>) |
建立新的 InterpolatedStringExpressionSyntax 實例。 |
InterpolatedStringExpression(SyntaxToken, SyntaxList<InterpolatedStringContentSyntax>, SyntaxToken) |
建立新的 InterpolatedStringExpressionSyntax 實例。 |
InterpolatedStringExpression(SyntaxToken, SyntaxToken)
建立新的 InterpolatedStringExpressionSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringExpressionSyntax InterpolatedStringExpression (Microsoft.CodeAnalysis.SyntaxToken stringStartToken, Microsoft.CodeAnalysis.SyntaxToken stringEndToken);
static member InterpolatedStringExpression : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringExpressionSyntax
Public Shared Function InterpolatedStringExpression (stringStartToken As SyntaxToken, stringEndToken As SyntaxToken) As InterpolatedStringExpressionSyntax
參數
- stringStartToken
- SyntaxToken
- stringEndToken
- SyntaxToken
傳回
適用於
InterpolatedStringExpression(SyntaxToken)
建立新的 InterpolatedStringExpressionSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::InterpolatedStringExpressionSyntax ^ InterpolatedStringExpression(Microsoft::CodeAnalysis::SyntaxToken stringStartToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringExpressionSyntax InterpolatedStringExpression (Microsoft.CodeAnalysis.SyntaxToken stringStartToken);
static member InterpolatedStringExpression : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringExpressionSyntax
Public Shared Function InterpolatedStringExpression (stringStartToken As SyntaxToken) As InterpolatedStringExpressionSyntax
參數
- stringStartToken
- SyntaxToken
傳回
適用於
InterpolatedStringExpression(SyntaxToken, SyntaxList<InterpolatedStringContentSyntax>)
建立新的 InterpolatedStringExpressionSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::InterpolatedStringExpressionSyntax ^ InterpolatedStringExpression(Microsoft::CodeAnalysis::SyntaxToken stringStartToken, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::InterpolatedStringContentSyntax ^> contents);
public static Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringExpressionSyntax InterpolatedStringExpression (Microsoft.CodeAnalysis.SyntaxToken stringStartToken, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringContentSyntax> contents);
static member InterpolatedStringExpression : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringContentSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringExpressionSyntax
Public Shared Function InterpolatedStringExpression (stringStartToken As SyntaxToken, contents As SyntaxList(Of InterpolatedStringContentSyntax)) As InterpolatedStringExpressionSyntax
參數
- stringStartToken
- SyntaxToken
- contents
- SyntaxList<InterpolatedStringContentSyntax>
傳回
適用於
InterpolatedStringExpression(SyntaxToken, SyntaxList<InterpolatedStringContentSyntax>, SyntaxToken)
建立新的 InterpolatedStringExpressionSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::InterpolatedStringExpressionSyntax ^ InterpolatedStringExpression(Microsoft::CodeAnalysis::SyntaxToken stringStartToken, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::InterpolatedStringContentSyntax ^> contents, Microsoft::CodeAnalysis::SyntaxToken stringEndToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringExpressionSyntax InterpolatedStringExpression (Microsoft.CodeAnalysis.SyntaxToken stringStartToken, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringContentSyntax> contents, Microsoft.CodeAnalysis.SyntaxToken stringEndToken);
static member InterpolatedStringExpression : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringContentSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.InterpolatedStringExpressionSyntax
Public Shared Function InterpolatedStringExpression (stringStartToken As SyntaxToken, contents As SyntaxList(Of InterpolatedStringContentSyntax), stringEndToken As SyntaxToken) As InterpolatedStringExpressionSyntax
參數
- stringStartToken
- SyntaxToken
- contents
- SyntaxList<InterpolatedStringContentSyntax>
- stringEndToken
- SyntaxToken