SyntaxExtensions.WithIdentifier(SimpleNameSyntax, SyntaxToken) 方法

定义

使用给定标识符令牌汇报给定的 SimpleNameSyntax 节点。 此函数是调用派生语法节点上 WithIdentifier 的包装器。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::CSharp::Syntax::SimpleNameSyntax ^ WithIdentifier(Microsoft::CodeAnalysis::CSharp::Syntax::SimpleNameSyntax ^ simpleName, Microsoft::CodeAnalysis::SyntaxToken identifier);
public static Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax WithIdentifier (this Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax simpleName, Microsoft.CodeAnalysis.SyntaxToken identifier);
static member WithIdentifier : Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax
<Extension()>
Public Function WithIdentifier (simpleName As SimpleNameSyntax, identifier As SyntaxToken) As SimpleNameSyntax

参数

simpleName
SimpleNameSyntax
identifier
SyntaxToken

返回

给定的简单名称使用给定标识符进行更新。

适用于