SyntaxFactory.AddRemoveHandlerStatement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddRemoveHandlerStatement(SyntaxKind, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax) |
表示 AddHandler 或 RemoveHandler 語句。 Kind 屬性會決定哪一個。 |
AddRemoveHandlerStatement(SyntaxKind, SyntaxToken, ExpressionSyntax, ExpressionSyntax) |
表示 AddHandler 或 RemoveHandler 語句。 Kind 屬性會決定哪一個。 |
AddRemoveHandlerStatement(SyntaxKind, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax)
- 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
表示 AddHandler 或 RemoveHandler 語句。 Kind 屬性會決定哪一個。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::AddRemoveHandlerStatementSyntax ^ AddRemoveHandlerStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken addHandlerOrRemoveHandlerKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ eventExpression, Microsoft::CodeAnalysis::SyntaxToken commaToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ delegateExpression);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax AddRemoveHandlerStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken addHandlerOrRemoveHandlerKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax eventExpression, Microsoft.CodeAnalysis.SyntaxToken commaToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax delegateExpression);
static member AddRemoveHandlerStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax
Public Shared Function AddRemoveHandlerStatement (kind As SyntaxKind, addHandlerOrRemoveHandlerKeyword As SyntaxToken, eventExpression As ExpressionSyntax, commaToken As SyntaxToken, delegateExpression As ExpressionSyntax) As AddRemoveHandlerStatementSyntax
參數
- kind
- SyntaxKind
, SyntaxKind 表示特定類型的 AddRemoveHandlerStatementSyntax。 其中一個 AddHandlerStatement,RemoveHandlerStatement。
- addHandlerOrRemoveHandlerKeyword
- SyntaxToken
「AddHandler」 或 「RemoveHandler」 關鍵字。
- eventExpression
- ExpressionSyntax
正在存取的事件。
- commaToken
- SyntaxToken
「,」權杖。
- delegateExpression
- ExpressionSyntax
要加入或移除的委派。
傳回
適用於
AddRemoveHandlerStatement(SyntaxKind, SyntaxToken, ExpressionSyntax, ExpressionSyntax)
- 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
表示 AddHandler 或 RemoveHandler 語句。 Kind 屬性會決定哪一個。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::AddRemoveHandlerStatementSyntax ^ AddRemoveHandlerStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken addHandlerOrRemoveHandlerKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ eventExpression, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ delegateExpression);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax AddRemoveHandlerStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken addHandlerOrRemoveHandlerKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax eventExpression, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax delegateExpression);
static member AddRemoveHandlerStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AddRemoveHandlerStatementSyntax
Public Shared Function AddRemoveHandlerStatement (kind As SyntaxKind, addHandlerOrRemoveHandlerKeyword As SyntaxToken, eventExpression As ExpressionSyntax, delegateExpression As ExpressionSyntax) As AddRemoveHandlerStatementSyntax
參數
- kind
- SyntaxKind
, SyntaxKind 表示特定類型的 AddRemoveHandlerStatementSyntax。 其中一個 AddHandlerStatement,RemoveHandlerStatement。
- addHandlerOrRemoveHandlerKeyword
- SyntaxToken
「AddHandler」 或 「RemoveHandler」 關鍵字。
- eventExpression
- ExpressionSyntax
正在存取的事件。
- delegateExpression
- ExpressionSyntax
要加入或移除的委派。