SyntaxFactory.LoadDirectiveTrivia 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
LoadDirectiveTrivia(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, Boolean) |
建立新的 LoadDirectiveTriviaSyntax 實例。 |
LoadDirectiveTrivia(SyntaxToken, Boolean) |
建立新的 LoadDirectiveTriviaSyntax 實例。 |
LoadDirectiveTrivia(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, Boolean)
建立新的 LoadDirectiveTriviaSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::LoadDirectiveTriviaSyntax ^ LoadDirectiveTrivia(Microsoft::CodeAnalysis::SyntaxToken hashToken, Microsoft::CodeAnalysis::SyntaxToken loadKeyword, Microsoft::CodeAnalysis::SyntaxToken file, Microsoft::CodeAnalysis::SyntaxToken endOfDirectiveToken, bool isActive);
public static Microsoft.CodeAnalysis.CSharp.Syntax.LoadDirectiveTriviaSyntax LoadDirectiveTrivia (Microsoft.CodeAnalysis.SyntaxToken hashToken, Microsoft.CodeAnalysis.SyntaxToken loadKeyword, Microsoft.CodeAnalysis.SyntaxToken file, Microsoft.CodeAnalysis.SyntaxToken endOfDirectiveToken, bool isActive);
static member LoadDirectiveTrivia : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * bool -> Microsoft.CodeAnalysis.CSharp.Syntax.LoadDirectiveTriviaSyntax
Public Shared Function LoadDirectiveTrivia (hashToken As SyntaxToken, loadKeyword As SyntaxToken, file As SyntaxToken, endOfDirectiveToken As SyntaxToken, isActive As Boolean) As LoadDirectiveTriviaSyntax
參數
- hashToken
- SyntaxToken
- loadKeyword
- SyntaxToken
- file
- SyntaxToken
- endOfDirectiveToken
- SyntaxToken
- isActive
- Boolean
傳回
適用於
LoadDirectiveTrivia(SyntaxToken, Boolean)
建立新的 LoadDirectiveTriviaSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::LoadDirectiveTriviaSyntax ^ LoadDirectiveTrivia(Microsoft::CodeAnalysis::SyntaxToken file, bool isActive);
public static Microsoft.CodeAnalysis.CSharp.Syntax.LoadDirectiveTriviaSyntax LoadDirectiveTrivia (Microsoft.CodeAnalysis.SyntaxToken file, bool isActive);
static member LoadDirectiveTrivia : Microsoft.CodeAnalysis.SyntaxToken * bool -> Microsoft.CodeAnalysis.CSharp.Syntax.LoadDirectiveTriviaSyntax
Public Shared Function LoadDirectiveTrivia (file As SyntaxToken, isActive As Boolean) As LoadDirectiveTriviaSyntax
參數
- file
- SyntaxToken
- isActive
- Boolean