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