Delen via


SyntaxGenerator.EventDeclaration Method

Definition

Overloads

EventDeclaration(IEventSymbol)

Creates an event declaration from an existing event symbol

EventDeclaration(String, SyntaxNode, Accessibility, DeclarationModifiers)

Creates an event declaration.

EventDeclaration(IEventSymbol)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates an event declaration from an existing event symbol

public:
 Microsoft::CodeAnalysis::SyntaxNode ^ EventDeclaration(Microsoft::CodeAnalysis::IEventSymbol ^ symbol);
public Microsoft.CodeAnalysis.SyntaxNode EventDeclaration (Microsoft.CodeAnalysis.IEventSymbol symbol);
member this.EventDeclaration : Microsoft.CodeAnalysis.IEventSymbol -> Microsoft.CodeAnalysis.SyntaxNode
Public Function EventDeclaration (symbol As IEventSymbol) As SyntaxNode

Parameters

symbol
IEventSymbol

Returns

Applies to

EventDeclaration(String, SyntaxNode, Accessibility, DeclarationModifiers)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates an event declaration.

public abstract Microsoft.CodeAnalysis.SyntaxNode EventDeclaration (string name, Microsoft.CodeAnalysis.SyntaxNode type, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default);
abstract member EventDeclaration : string * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.Accessibility * Microsoft.CodeAnalysis.Editing.DeclarationModifiers -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function EventDeclaration (name As String, type As SyntaxNode, Optional accessibility As Accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Optional modifiers As DeclarationModifiers = Nothing) As SyntaxNode

Parameters

name
String
type
SyntaxNode
accessibility
Accessibility

Returns

Applies to