共用方式為


ConstDirectiveTriviaSyntax.WithValue(ExpressionSyntax) Method

Definition

Returns a copy of this with the Value 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::ConstDirectiveTriviaSyntax ^ WithValue(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ value);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstDirectiveTriviaSyntax WithValue (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax value);
member this.WithValue : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstDirectiveTriviaSyntax
Public Function WithValue (value As ExpressionSyntax) As ConstDirectiveTriviaSyntax

Parameters

Returns

Applies to