NameColonEqualsSyntax.WithName(IdentifierNameSyntax) 方法

定义

返回一个副本,其中 Name 属性已更改为指定值。 如果指定的值与当前值相同,则返回此实例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::NameColonEqualsSyntax ^ WithName(Microsoft::CodeAnalysis::VisualBasic::Syntax::IdentifierNameSyntax ^ name);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.NameColonEqualsSyntax WithName (Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax name);
member this.WithName : Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.NameColonEqualsSyntax
Public Function WithName (name As IdentifierNameSyntax) As NameColonEqualsSyntax

参数

返回

适用于