Partilhar via


SyntaxFactory.UnaryExpression Método

Definição

Descreve um operador unário: Plus, Negate, Not ou AddressOf.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::UnaryExpressionSyntax ^ UnaryExpression(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken operatorToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ operand);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.UnaryExpressionSyntax UnaryExpression (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken operatorToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax operand);
static member UnaryExpression : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.UnaryExpressionSyntax
Public Shared Function UnaryExpression (kind As SyntaxKind, operatorToken As SyntaxToken, operand As ExpressionSyntax) As UnaryExpressionSyntax

Parâmetros

kind
SyntaxKind

Um SyntaxKind que representa o tipo específico de UnaryExpressionSyntax. Um de UnaryPlusExpression, UnaryMinusExpression, NotExpression, AddressOfExpression.

operatorToken
SyntaxToken

O token que é o operador .

operand
ExpressionSyntax

A expressão em que está sendo operada.

Retornos

Aplica-se a