Delen via


Solution.GetProject Method

Definition

Overloads

GetProject(ProjectId)

Gets the project in this solution with the specified project ID.

If the id is not an id of a project that is part of this solution the method returns null.

GetProject(IAssemblySymbol, CancellationToken)

Gets the Project associated with an assembly symbol.

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

Gets the project in this solution with the specified project ID.

If the id is not an id of a project that is part of this solution the method returns 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

Parameters

projectId
ProjectId

Returns

Applies to

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

Gets the Project associated with an assembly symbol.

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

Parameters

assemblySymbol
IAssemblySymbol
cancellationToken
CancellationToken

Returns

Applies to