共用方式為


DefineDirectiveTriviaSyntax.WithIsActive(Boolean) 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::DefineDirectiveTriviaSyntax ^ WithIsActive(bool isActive);
public Microsoft.CodeAnalysis.CSharp.Syntax.DefineDirectiveTriviaSyntax WithIsActive (bool isActive);
member this.WithIsActive : bool -> Microsoft.CodeAnalysis.CSharp.Syntax.DefineDirectiveTriviaSyntax
Public Function WithIsActive (isActive As Boolean) As DefineDirectiveTriviaSyntax

參數

isActive
Boolean

傳回

適用於