EventFieldDeclarationSyntax.WithDeclaration(VariableDeclarationSyntax) 方法

定义

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::EventFieldDeclarationSyntax ^ WithDeclaration(Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ declaration);
public Microsoft.CodeAnalysis.CSharp.Syntax.EventFieldDeclarationSyntax WithDeclaration (Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration);
override this.WithDeclaration : Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.EventFieldDeclarationSyntax
Public Function WithDeclaration (declaration As VariableDeclarationSyntax) As EventFieldDeclarationSyntax

参数

返回

适用于