AttributeSyntax.WithTarget(AttributeTargetSyntax) 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeSyntax ^ WithTarget(Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeTargetSyntax ^ target);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax WithTarget (Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeTargetSyntax target);
member this.WithTarget : Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeTargetSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax
Public Function WithTarget (target As AttributeTargetSyntax) As AttributeSyntax

参数

返回

适用于