Share via


InterpolatedStringExpressionSyntax.WithContents Method

Definition

Returns a copy of this with the Contents 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::InterpolatedStringExpressionSyntax ^ WithContents(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::InterpolatedStringContentSyntax ^> contents);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolatedStringExpressionSyntax WithContents (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolatedStringContentSyntax> contents);
member this.WithContents : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolatedStringContentSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.InterpolatedStringExpressionSyntax
Public Function WithContents (contents As SyntaxList(Of InterpolatedStringContentSyntax)) As InterpolatedStringExpressionSyntax

Parameters

Returns

Applies to