Delen via


AttributeSyntax.WithTarget(AttributeTargetSyntax) Method

Definition

Returns a copy of this with the Target property changed to the specified value. Returns this instance if the specified value is the same as the current value.

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

Parameters

Returns

Applies to