SyntaxGenerator.DelegateDeclaration 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.
Creates a delegate declaration.
public abstract Microsoft.CodeAnalysis.SyntaxNode DelegateDeclaration (string name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> parameters = default, System.Collections.Generic.IEnumerable<string> typeParameters = default, Microsoft.CodeAnalysis.SyntaxNode returnType = default, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default);
public abstract Microsoft.CodeAnalysis.SyntaxNode DelegateDeclaration (string name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? parameters = default, System.Collections.Generic.IEnumerable<string>? typeParameters = default, Microsoft.CodeAnalysis.SyntaxNode? returnType = default, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default);
public Microsoft.CodeAnalysis.SyntaxNode DelegateDeclaration (string name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? parameters = default, System.Collections.Generic.IEnumerable<string>? typeParameters = default, Microsoft.CodeAnalysis.SyntaxNode? returnType = default, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default);
abstract member DelegateDeclaration : string * seq<Microsoft.CodeAnalysis.SyntaxNode> * seq<string> * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.Accessibility * Microsoft.CodeAnalysis.Editing.DeclarationModifiers -> Microsoft.CodeAnalysis.SyntaxNode
member this.DelegateDeclaration : string * seq<Microsoft.CodeAnalysis.SyntaxNode> * seq<string> * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.Accessibility * Microsoft.CodeAnalysis.Editing.DeclarationModifiers -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function DelegateDeclaration (name As String, Optional parameters As IEnumerable(Of SyntaxNode) = Nothing, Optional typeParameters As IEnumerable(Of String) = Nothing, Optional returnType As SyntaxNode = Nothing, Optional accessibility As Accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Optional modifiers As DeclarationModifiers = Nothing) As SyntaxNode
Public Function DelegateDeclaration (name As String, Optional parameters As IEnumerable(Of SyntaxNode) = Nothing, Optional typeParameters As IEnumerable(Of String) = Nothing, Optional returnType As SyntaxNode = Nothing, Optional accessibility As Accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Optional modifiers As DeclarationModifiers = Nothing) As SyntaxNode
Parameters
- name
- String
- parameters
- IEnumerable<SyntaxNode>
- typeParameters
- IEnumerable<String>
- returnType
- SyntaxNode
- accessibility
- Accessibility
- modifiers
- DeclarationModifiers
Returns
Applies to
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.