Partilhar via


SyntaxFactory.DisabledText(String) Method

Definition

Creates a trivia with kind DisabledTextTrivia. Disabled text corresponds to any text between directives that is not considered active.

public:
 static Microsoft::CodeAnalysis::SyntaxTrivia DisabledText(System::String ^ text);
public static Microsoft.CodeAnalysis.SyntaxTrivia DisabledText (string text);
static member DisabledText : string -> Microsoft.CodeAnalysis.SyntaxTrivia
Public Shared Function DisabledText (text As String) As SyntaxTrivia

Parameters

text
String

Returns

Applies to