Search Results for

    Show / Hide Table of Contents

    Class EventDeclarationSyntax

    Inheritance
    object
    SyntaxNode
    CSharpSyntaxNode
    MemberDeclarationSyntax
    BasePropertyDeclarationSyntax
    EventDeclarationSyntax
    Implements
    IFormattable
    Inherited Members
    CSharpSyntaxNode.Kind()
    CSharpSyntaxNode.GetLeadingTrivia()
    CSharpSyntaxNode.GetTrailingTrivia()
    CSharpSyntaxNode.DeserializeFrom(Stream, CancellationToken)
    CSharpSyntaxNode.GetLocation()
    CSharpSyntaxNode.GetDiagnostics()
    CSharpSyntaxNode.GetFirstDirective(Func<DirectiveTriviaSyntax, bool>)
    CSharpSyntaxNode.GetLastDirective(Func<DirectiveTriviaSyntax, bool>)
    CSharpSyntaxNode.GetFirstToken(bool, bool, bool, bool)
    CSharpSyntaxNode.GetLastToken(bool, bool, bool, bool)
    CSharpSyntaxNode.FindToken(int, bool)
    CSharpSyntaxNode.FindTrivia(int, Func<SyntaxTrivia, bool>)
    CSharpSyntaxNode.FindTrivia(int, bool)
    CSharpSyntaxNode.Language
    SyntaxNode.ToString()
    SyntaxNode.ToFullString()
    SyntaxNode.WriteTo(TextWriter)
    SyntaxNode.GetText(Encoding, SourceHashAlgorithm)
    SyntaxNode.IsEquivalentTo(SyntaxNode)
    SyntaxNode.IsIncrementallyIdenticalTo(SyntaxNode)
    SyntaxNode.IsPartOfStructuredTrivia()
    SyntaxNode.ContainsDirective(int)
    SyntaxNode.Contains(SyntaxNode)
    SyntaxNode.GetReference()
    SyntaxNode.ChildNodesAndTokens()
    SyntaxNode.ChildThatContainsPosition(int)
    SyntaxNode.ChildNodes()
    SyntaxNode.Ancestors(bool)
    SyntaxNode.AncestorsAndSelf(bool)
    SyntaxNode.FirstAncestorOrSelf<TNode>(Func<TNode, bool>, bool)
    SyntaxNode.FirstAncestorOrSelf<TNode, TArg>(Func<TNode, TArg, bool>, TArg, bool)
    SyntaxNode.DescendantNodes(Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantNodes(TextSpan, Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantNodesAndSelf(Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantNodesAndSelf(TextSpan, Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantNodesAndTokens(Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantNodesAndTokens(TextSpan, Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantNodesAndTokensAndSelf(Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantNodesAndTokensAndSelf(TextSpan, Func<SyntaxNode, bool>, bool)
    SyntaxNode.FindNode(TextSpan, bool, bool)
    SyntaxNode.ChildTokens()
    SyntaxNode.DescendantTokens(Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantTokens(TextSpan, Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantTrivia(Func<SyntaxNode, bool>, bool)
    SyntaxNode.DescendantTrivia(TextSpan, Func<SyntaxNode, bool>, bool)
    SyntaxNode.HasAnnotations(string)
    SyntaxNode.HasAnnotations(IEnumerable<string>)
    SyntaxNode.HasAnnotation(SyntaxAnnotation)
    SyntaxNode.GetAnnotations(string)
    SyntaxNode.GetAnnotations(IEnumerable<string>)
    SyntaxNode.GetAnnotatedNodesAndTokens(string)
    SyntaxNode.GetAnnotatedNodesAndTokens(params string[])
    SyntaxNode.GetAnnotatedNodesAndTokens(SyntaxAnnotation)
    SyntaxNode.GetAnnotatedNodes(SyntaxAnnotation)
    SyntaxNode.GetAnnotatedNodes(string)
    SyntaxNode.GetAnnotatedTokens(SyntaxAnnotation)
    SyntaxNode.GetAnnotatedTokens(string)
    SyntaxNode.GetAnnotatedTrivia(string)
    SyntaxNode.GetAnnotatedTrivia(params string[])
    SyntaxNode.GetAnnotatedTrivia(SyntaxAnnotation)
    SyntaxNode.CopyAnnotationsTo<T>(T)
    SyntaxNode.IsEquivalentTo(SyntaxNode, bool)
    SyntaxNode.SerializeTo(Stream, CancellationToken)
    SyntaxNode.RawKind
    SyntaxNode.SyntaxTree
    SyntaxNode.FullSpan
    SyntaxNode.Span
    SyntaxNode.SpanStart
    SyntaxNode.IsMissing
    SyntaxNode.IsStructuredTrivia
    SyntaxNode.HasStructuredTrivia
    SyntaxNode.ContainsSkippedText
    SyntaxNode.ContainsDiagnostics
    SyntaxNode.ContainsDirectives
    SyntaxNode.HasLeadingTrivia
    SyntaxNode.HasTrailingTrivia
    SyntaxNode.Parent
    SyntaxNode.ParentTrivia
    SyntaxNode.ContainsAnnotations
    object.GetType()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Microsoft.CodeAnalysis.CSharp.Syntax
    Assembly: Microsoft.CodeAnalysis.CSharp.dll
    Syntax
    public sealed class EventDeclarationSyntax : BasePropertyDeclarationSyntax, IFormattable

    Properties

    AccessorList

    Declaration
    public override AccessorListSyntax? AccessorList { get; }
    Property Value
    Type Description
    AccessorListSyntax
    Overrides
    BasePropertyDeclarationSyntax.AccessorList

    AttributeLists

    Declaration
    public override SyntaxList<AttributeListSyntax> AttributeLists { get; }
    Property Value
    Type Description
    SyntaxList<AttributeListSyntax>
    Overrides
    BasePropertyDeclarationSyntax.AttributeLists

    EventKeyword

    Declaration
    public SyntaxToken EventKeyword { get; }
    Property Value
    Type Description
    SyntaxToken

    ExplicitInterfaceSpecifier

    Declaration
    public override ExplicitInterfaceSpecifierSyntax? ExplicitInterfaceSpecifier { get; }
    Property Value
    Type Description
    ExplicitInterfaceSpecifierSyntax
    Overrides
    BasePropertyDeclarationSyntax.ExplicitInterfaceSpecifier

    Identifier

    Declaration
    public SyntaxToken Identifier { get; }
    Property Value
    Type Description
    SyntaxToken

    Modifiers

    Declaration
    public override SyntaxTokenList Modifiers { get; }
    Property Value
    Type Description
    SyntaxTokenList
    Overrides
    BasePropertyDeclarationSyntax.Modifiers

    SemicolonToken

    Declaration
    public SyntaxToken SemicolonToken { get; }
    Property Value
    Type Description
    SyntaxToken

    Type

    Declaration
    public override TypeSyntax Type { get; }
    Property Value
    Type Description
    TypeSyntax
    Overrides
    BasePropertyDeclarationSyntax.Type

    Methods

    Accept(CSharpSyntaxVisitor)

    Declaration
    public override void Accept(CSharpSyntaxVisitor visitor)
    Parameters
    Type Name Description
    CSharpSyntaxVisitor visitor
    Overrides
    CSharpSyntaxNode.Accept(CSharpSyntaxVisitor)

    Accept<TResult>(CSharpSyntaxVisitor<TResult>)

    Declaration
    public override TResult? Accept<TResult>(CSharpSyntaxVisitor<TResult> visitor)
    Parameters
    Type Name Description
    CSharpSyntaxVisitor<TResult> visitor
    Returns
    Type Description
    TResult
    Type Parameters
    Name Description
    TResult
    Overrides
    CSharpSyntaxNode.Accept<TResult>(CSharpSyntaxVisitor<TResult>)

    AddAccessorListAccessors(params AccessorDeclarationSyntax[])

    Declaration
    public EventDeclarationSyntax AddAccessorListAccessors(params AccessorDeclarationSyntax[] items)
    Parameters
    Type Name Description
    AccessorDeclarationSyntax[] items
    Returns
    Type Description
    EventDeclarationSyntax

    AddAttributeLists(params AttributeListSyntax[])

    Declaration
    public EventDeclarationSyntax AddAttributeLists(params AttributeListSyntax[] items)
    Parameters
    Type Name Description
    AttributeListSyntax[] items
    Returns
    Type Description
    EventDeclarationSyntax

    AddModifiers(params SyntaxToken[])

    Declaration
    public EventDeclarationSyntax AddModifiers(params SyntaxToken[] items)
    Parameters
    Type Name Description
    SyntaxToken[] items
    Returns
    Type Description
    EventDeclarationSyntax

    Update(SyntaxList<AttributeListSyntax>, SyntaxTokenList, SyntaxToken, TypeSyntax, ExplicitInterfaceSpecifierSyntax, SyntaxToken, AccessorListSyntax)

    Declaration
    public EventDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax accessorList)
    Parameters
    Type Name Description
    SyntaxList<AttributeListSyntax> attributeLists
    SyntaxTokenList modifiers
    SyntaxToken eventKeyword
    TypeSyntax type
    ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier
    SyntaxToken identifier
    AccessorListSyntax accessorList
    Returns
    Type Description
    EventDeclarationSyntax

    Update(SyntaxList<AttributeListSyntax>, SyntaxTokenList, SyntaxToken, TypeSyntax, ExplicitInterfaceSpecifierSyntax?, SyntaxToken, AccessorListSyntax?, SyntaxToken)

    Declaration
    public EventDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, SyntaxToken semicolonToken)
    Parameters
    Type Name Description
    SyntaxList<AttributeListSyntax> attributeLists
    SyntaxTokenList modifiers
    SyntaxToken eventKeyword
    TypeSyntax type
    ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier
    SyntaxToken identifier
    AccessorListSyntax accessorList
    SyntaxToken semicolonToken
    Returns
    Type Description
    EventDeclarationSyntax

    Update(SyntaxList<AttributeListSyntax>, SyntaxTokenList, SyntaxToken, TypeSyntax, ExplicitInterfaceSpecifierSyntax, SyntaxToken, SyntaxToken)

    Declaration
    public EventDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, SyntaxToken semicolonToken)
    Parameters
    Type Name Description
    SyntaxList<AttributeListSyntax> attributeLists
    SyntaxTokenList modifiers
    SyntaxToken eventKeyword
    TypeSyntax type
    ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier
    SyntaxToken identifier
    SyntaxToken semicolonToken
    Returns
    Type Description
    EventDeclarationSyntax

    WithAccessorList(AccessorListSyntax?)

    Declaration
    public EventDeclarationSyntax WithAccessorList(AccessorListSyntax? accessorList)
    Parameters
    Type Name Description
    AccessorListSyntax accessorList
    Returns
    Type Description
    EventDeclarationSyntax

    WithAttributeLists(SyntaxList<AttributeListSyntax>)

    Declaration
    public EventDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists)
    Parameters
    Type Name Description
    SyntaxList<AttributeListSyntax> attributeLists
    Returns
    Type Description
    EventDeclarationSyntax

    WithEventKeyword(SyntaxToken)

    Declaration
    public EventDeclarationSyntax WithEventKeyword(SyntaxToken eventKeyword)
    Parameters
    Type Name Description
    SyntaxToken eventKeyword
    Returns
    Type Description
    EventDeclarationSyntax

    WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax?)

    Declaration
    public EventDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier)
    Parameters
    Type Name Description
    ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier
    Returns
    Type Description
    EventDeclarationSyntax

    WithIdentifier(SyntaxToken)

    Declaration
    public EventDeclarationSyntax WithIdentifier(SyntaxToken identifier)
    Parameters
    Type Name Description
    SyntaxToken identifier
    Returns
    Type Description
    EventDeclarationSyntax

    WithModifiers(SyntaxTokenList)

    Declaration
    public EventDeclarationSyntax WithModifiers(SyntaxTokenList modifiers)
    Parameters
    Type Name Description
    SyntaxTokenList modifiers
    Returns
    Type Description
    EventDeclarationSyntax

    WithSemicolonToken(SyntaxToken)

    Declaration
    public EventDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken)
    Parameters
    Type Name Description
    SyntaxToken semicolonToken
    Returns
    Type Description
    EventDeclarationSyntax

    WithType(TypeSyntax)

    Declaration
    public EventDeclarationSyntax WithType(TypeSyntax type)
    Parameters
    Type Name Description
    TypeSyntax type
    Returns
    Type Description
    EventDeclarationSyntax

    Implements

    IFormattable

    Extension Methods

    CSharpExtensions.GetFirstDirective(SyntaxNode, Func<DirectiveTriviaSyntax, bool>?)
    CSharpExtensions.GetLastDirective(SyntaxNode, Func<DirectiveTriviaSyntax, bool>?)
    CSharpExtensions.Kind(SyntaxNode)
    SyntaxFacts.TryGetInferredMemberName(SyntaxNode)
    CSharpExtensions.ContainsDirective(SyntaxNode, SyntaxKind)
    CSharpExtensions.IsKind(SyntaxNode?, SyntaxKind)
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0