SimpleImportsClauseSyntax.WithName(NameSyntax) 方法

定义

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

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

参数

name
NameSyntax

返回

适用于