共用方式為


SyntaxFactory.AccessorDeclaration 方法

定義

多載

AccessorDeclaration(SyntaxKind)

建立新的存取子DeclarationSyntax 實例。

AccessorDeclaration(SyntaxKind, BlockSyntax)

建立新的存取子DeclarationSyntax 實例。

AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, ArrowExpressionClauseSyntax)
AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, BlockSyntax)
AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, BlockSyntax, ArrowExpressionClauseSyntax)

建立新的存取子DeclarationSyntax 實例。

AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, SyntaxToken, ArrowExpressionClauseSyntax, SyntaxToken)
AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, SyntaxToken, BlockSyntax, SyntaxToken)
AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, SyntaxToken, BlockSyntax, ArrowExpressionClauseSyntax, SyntaxToken)

建立新的存取子DeclarationSyntax 實例。

AccessorDeclaration(SyntaxKind)

來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs

建立新的存取子DeclarationSyntax 實例。

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::AccessorDeclarationSyntax ^ AccessorDeclaration(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind);
static member AccessorDeclaration : Microsoft.CodeAnalysis.CSharp.SyntaxKind -> Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax
Public Shared Function AccessorDeclaration (kind As SyntaxKind) As AccessorDeclarationSyntax

參數

kind
SyntaxKind

傳回

適用於

AccessorDeclaration(SyntaxKind, BlockSyntax)

來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs
來源:
PropertyDeclarationSyntax.cs

建立新的存取子DeclarationSyntax 實例。

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::AccessorDeclarationSyntax ^ AccessorDeclaration(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ body);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? body);
static member AccessorDeclaration : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax
Public Shared Function AccessorDeclaration (kind As SyntaxKind, body As BlockSyntax) As AccessorDeclarationSyntax

參數

kind
SyntaxKind

傳回

適用於

AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, ArrowExpressionClauseSyntax)

來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::AccessorDeclarationSyntax ^ AccessorDeclaration(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::CSharp::Syntax::ArrowExpressionClauseSyntax ^ expressionBody);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody);
static member AccessorDeclaration : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax
Public Shared Function AccessorDeclaration (kind As SyntaxKind, attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, expressionBody As ArrowExpressionClauseSyntax) As AccessorDeclarationSyntax

參數

kind
SyntaxKind
modifiers
SyntaxTokenList

傳回

適用於

AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, BlockSyntax)

來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::AccessorDeclarationSyntax ^ AccessorDeclaration(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ body);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body);
static member AccessorDeclaration : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax
Public Shared Function AccessorDeclaration (kind As SyntaxKind, attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, body As BlockSyntax) As AccessorDeclarationSyntax

參數

kind
SyntaxKind
modifiers
SyntaxTokenList

傳回

適用於

AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, BlockSyntax, ArrowExpressionClauseSyntax)

來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs

建立新的存取子DeclarationSyntax 實例。

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::AccessorDeclarationSyntax ^ AccessorDeclaration(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ body, Microsoft::CodeAnalysis::CSharp::Syntax::ArrowExpressionClauseSyntax ^ expressionBody);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? body, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax? expressionBody);
static member AccessorDeclaration : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax
Public Shared Function AccessorDeclaration (kind As SyntaxKind, attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, body As BlockSyntax, expressionBody As ArrowExpressionClauseSyntax) As AccessorDeclarationSyntax

參數

kind
SyntaxKind
modifiers
SyntaxTokenList

傳回

適用於

AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, SyntaxToken, ArrowExpressionClauseSyntax, SyntaxToken)

來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::AccessorDeclarationSyntax ^ AccessorDeclaration(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::SyntaxToken keyword, Microsoft::CodeAnalysis::CSharp::Syntax::ArrowExpressionClauseSyntax ^ expressionBody, Microsoft::CodeAnalysis::SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.SyntaxToken keyword, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member AccessorDeclaration : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax
Public Shared Function AccessorDeclaration (kind As SyntaxKind, attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, keyword As SyntaxToken, expressionBody As ArrowExpressionClauseSyntax, semicolonToken As SyntaxToken) As AccessorDeclarationSyntax

參數

kind
SyntaxKind
modifiers
SyntaxTokenList
keyword
SyntaxToken
semicolonToken
SyntaxToken

傳回

適用於

AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, SyntaxToken, BlockSyntax, SyntaxToken)

來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
來源:
SyntaxFactory.cs
public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::AccessorDeclarationSyntax ^ AccessorDeclaration(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::SyntaxToken keyword, Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ body, Microsoft::CodeAnalysis::SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.SyntaxToken keyword, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member AccessorDeclaration : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax
Public Shared Function AccessorDeclaration (kind As SyntaxKind, attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, keyword As SyntaxToken, body As BlockSyntax, semicolonToken As SyntaxToken) As AccessorDeclarationSyntax

參數

kind
SyntaxKind
modifiers
SyntaxTokenList
keyword
SyntaxToken
semicolonToken
SyntaxToken

傳回

適用於

AccessorDeclaration(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxTokenList, SyntaxToken, BlockSyntax, ArrowExpressionClauseSyntax, SyntaxToken)

來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs
來源:
Syntax.xml.Main.Generated.cs

建立新的存取子DeclarationSyntax 實例。

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::AccessorDeclarationSyntax ^ AccessorDeclaration(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::SyntaxToken keyword, Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ body, Microsoft::CodeAnalysis::CSharp::Syntax::ArrowExpressionClauseSyntax ^ expressionBody, Microsoft::CodeAnalysis::SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.SyntaxToken keyword, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AccessorDeclaration (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.SyntaxToken keyword, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? body, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax? expressionBody, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member AccessorDeclaration : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax
Public Shared Function AccessorDeclaration (kind As SyntaxKind, attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, keyword As SyntaxToken, body As BlockSyntax, expressionBody As ArrowExpressionClauseSyntax, semicolonToken As SyntaxToken) As AccessorDeclarationSyntax

參數

kind
SyntaxKind
modifiers
SyntaxTokenList
keyword
SyntaxToken
semicolonToken
SyntaxToken

傳回

適用於