SyntaxGenerator.EventDeclaration 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
EventDeclaration(IEventSymbol) |
从现有事件符号创建事件声明 |
EventDeclaration(String, SyntaxNode, Accessibility, DeclarationModifiers) |
创建事件声明。 |
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
从现有事件符号创建事件声明
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
参数
- symbol
- IEventSymbol
返回
适用于
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
创建事件声明。
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
参数
- name
- String
- type
- SyntaxNode
- accessibility
- Accessibility
- modifiers
- DeclarationModifiers