AttributeListSyntax.WithAttributes 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeListSyntax ^ WithAttributes(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeSyntax ^> attributes);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax WithAttributes (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax> attributes);
member this.WithAttributes : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax
Public Function WithAttributes (attributes As SeparatedSyntaxList(Of AttributeSyntax)) As AttributeListSyntax

参数

返回

适用于