共用方式為


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

傳回

使用指定的識別碼更新指定的簡單名稱。

適用於