SyntaxFactory.UnaryExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes a unary operator: Plus, Negate, Not or 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
Parameters
- kind
- SyntaxKind
A SyntaxKind representing the specific kind of UnaryExpressionSyntax. One of UnaryPlusExpression, UnaryMinusExpression, NotExpression, AddressOfExpression.
- operatorToken
- SyntaxToken
The token that is the operator.
- operand
- ExpressionSyntax
The expression being operated on.
Returns
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.