Partager via


UsingBlockSyntax.WithUsingStatement(UsingStatementSyntax) Method

Definition

Returns a copy of this with the UsingStatement 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::UsingBlockSyntax ^ WithUsingStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::UsingStatementSyntax ^ usingStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingBlockSyntax WithUsingStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingStatementSyntax usingStatement);
member this.WithUsingStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingBlockSyntax
Public Function WithUsingStatement (usingStatement As UsingStatementSyntax) As UsingBlockSyntax

Parameters

usingStatement
UsingStatementSyntax

Returns

Applies to