다음을 통해 공유


CSharpCompilation.ContainsSyntaxTree(SyntaxTree) Method

Definition

Returns true if this compilation contains the specified tree. False otherwise.

public:
 bool ContainsSyntaxTree(Microsoft::CodeAnalysis::SyntaxTree ^ syntaxTree);
public bool ContainsSyntaxTree (Microsoft.CodeAnalysis.SyntaxTree syntaxTree);
public bool ContainsSyntaxTree (Microsoft.CodeAnalysis.SyntaxTree? syntaxTree);
override this.ContainsSyntaxTree : Microsoft.CodeAnalysis.SyntaxTree -> bool
Public Function ContainsSyntaxTree (syntaxTree As SyntaxTree) As Boolean

Parameters

syntaxTree
SyntaxTree

Returns

Applies to