共用方式為


AccessorStatementSyntax.WithAccessorKeyword(SyntaxToken) 方法

定義

傳回這個 的複本,其存取子Keyword 屬性已變更為指定的值。 如果指定的值與目前的值相同,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorStatementSyntax ^ WithAccessorKeyword(Microsoft::CodeAnalysis::SyntaxToken accessorKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax WithAccessorKeyword (Microsoft.CodeAnalysis.SyntaxToken accessorKeyword);
member this.WithAccessorKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax
Public Function WithAccessorKeyword (accessorKeyword As SyntaxToken) As AccessorStatementSyntax

參數

accessorKeyword
SyntaxToken

傳回

適用於