Solution.GetProject 方法

定义

重载

GetProject(ProjectId)

获取此解决方案中具有指定项目 ID 的项目。

如果 ID 不是此解决方案的一部分的项目的 ID,该方法将返回 null。

GetProject(IAssemblySymbol, CancellationToken)

Project获取与程序集符号关联的项。

GetProject(ProjectId)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

获取此解决方案中具有指定项目 ID 的项目。

如果 ID 不是此解决方案的一部分的项目的 ID,该方法将返回 null。

public:
 Microsoft::CodeAnalysis::Project ^ GetProject(Microsoft::CodeAnalysis::ProjectId ^ projectId);
public Microsoft.CodeAnalysis.Project GetProject (Microsoft.CodeAnalysis.ProjectId projectId);
public Microsoft.CodeAnalysis.Project? GetProject (Microsoft.CodeAnalysis.ProjectId? projectId);
member this.GetProject : Microsoft.CodeAnalysis.ProjectId -> Microsoft.CodeAnalysis.Project
Public Function GetProject (projectId As ProjectId) As Project

参数

projectId
ProjectId

返回

适用于

GetProject(IAssemblySymbol, CancellationToken)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

Project获取与程序集符号关联的项。

public Microsoft.CodeAnalysis.Project GetProject (Microsoft.CodeAnalysis.IAssemblySymbol assemblySymbol, System.Threading.CancellationToken cancellationToken = default);
public Microsoft.CodeAnalysis.Project? GetProject (Microsoft.CodeAnalysis.IAssemblySymbol assemblySymbol, System.Threading.CancellationToken cancellationToken = default);
member this.GetProject : Microsoft.CodeAnalysis.IAssemblySymbol * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Project
Public Function GetProject (assemblySymbol As IAssemblySymbol, Optional cancellationToken As CancellationToken = Nothing) As Project

参数

assemblySymbol
IAssemblySymbol
cancellationToken
CancellationToken

返回

适用于