共用方式為


Project.GetDocument 方法

定義

多載

GetDocument(DocumentId)

使用指定的檔識別碼取得此專案中的檔。

GetDocument(SyntaxTree)

使用指定的語法樹狀結構取得此專案中的檔。

GetDocument(DocumentId)

Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs

使用指定的檔識別碼取得此專案中的檔。

public:
 Microsoft::CodeAnalysis::Document ^ GetDocument(Microsoft::CodeAnalysis::DocumentId ^ documentId);
public Microsoft.CodeAnalysis.Document GetDocument (Microsoft.CodeAnalysis.DocumentId documentId);
public Microsoft.CodeAnalysis.Document? GetDocument (Microsoft.CodeAnalysis.DocumentId documentId);
member this.GetDocument : Microsoft.CodeAnalysis.DocumentId -> Microsoft.CodeAnalysis.Document
Public Function GetDocument (documentId As DocumentId) As Document

參數

documentId
DocumentId

傳回

適用於

GetDocument(SyntaxTree)

Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs
Source:
Project.cs

使用指定的語法樹狀結構取得此專案中的檔。

public:
 Microsoft::CodeAnalysis::Document ^ GetDocument(Microsoft::CodeAnalysis::SyntaxTree ^ syntaxTree);
public Microsoft.CodeAnalysis.Document GetDocument (Microsoft.CodeAnalysis.SyntaxTree syntaxTree);
public Microsoft.CodeAnalysis.Document? GetDocument (Microsoft.CodeAnalysis.SyntaxTree? syntaxTree);
member this.GetDocument : Microsoft.CodeAnalysis.SyntaxTree -> Microsoft.CodeAnalysis.Document
Public Function GetDocument (syntaxTree As SyntaxTree) As Document

參數

syntaxTree
SyntaxTree

傳回

適用於