SyntaxFactory.TryCastExpression Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
TryCastExpression(ExpressionSyntax, TypeSyntax) | |
TryCastExpression(SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, TypeSyntax, SyntaxToken) |
TryCastExpression(ExpressionSyntax, TypeSyntax)
- 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
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::TryCastExpressionSyntax ^ TryCastExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ type);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.TryCastExpressionSyntax TryCastExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type);
static member TryCastExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TryCastExpressionSyntax
Public Shared Function TryCastExpression (expression As ExpressionSyntax, type As TypeSyntax) As TryCastExpressionSyntax
Parâmetros
- expression
- ExpressionSyntax
A expressão que está sendo lançada.
- type
- TypeSyntax
O tipo ao qual a expressão está sendo convertida.
Retornos
Aplica-se a
TryCastExpression(SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, TypeSyntax, 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
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::TryCastExpressionSyntax ^ TryCastExpression(Microsoft::CodeAnalysis::SyntaxToken keyword, Microsoft::CodeAnalysis::SyntaxToken openParenToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::SyntaxToken commaToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ type, Microsoft::CodeAnalysis::SyntaxToken closeParenToken);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.TryCastExpressionSyntax TryCastExpression (Microsoft.CodeAnalysis.SyntaxToken keyword, Microsoft.CodeAnalysis.SyntaxToken openParenToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken commaToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.SyntaxToken closeParenToken);
static member TryCastExpression : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TryCastExpressionSyntax
Public Shared Function TryCastExpression (keyword As SyntaxToken, openParenToken As SyntaxToken, expression As ExpressionSyntax, commaToken As SyntaxToken, type As TypeSyntax, closeParenToken As SyntaxToken) As TryCastExpressionSyntax
Parâmetros
- keyword
- SyntaxToken
A palavra-chave "CType", "DirectCast" ou "TryCast".
- openParenToken
- SyntaxToken
O token "(".
- expression
- ExpressionSyntax
A expressão que está sendo lançada.
- commaToken
- SyntaxToken
O token "".
- type
- TypeSyntax
O tipo ao qual a expressão está sendo convertida.
- closeParenToken
- SyntaxToken
O token ")".
Retornos
Aplica-se a
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.