共用方式為


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

參數

傳回

適用於