共用方式為


WarningDirectiveTriviaSyntax.WithIsActive(Boolean) 方法

定義

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

參數

isActive
Boolean

傳回

適用於