ConstDirectiveTriviaSyntax.WithValue(ExpressionSyntax) 方法

定义

返回一个副本,其中 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

参数

返回

适用于