Partager via


Solution.GetProject Méthode

Définition

Surcharges

GetProject(ProjectId)

Obtient le projet dans cette solution avec l’ID de projet spécifié.

Si l’ID n’est pas un ID d’un projet qui fait partie de cette solution, la méthode retourne null.

GetProject(IAssemblySymbol, CancellationToken)

Obtient l’associé Project à un symbole d’assembly.

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

Obtient le projet dans cette solution avec l’ID de projet spécifié.

Si l’ID n’est pas un ID d’un projet qui fait partie de cette solution, la méthode retourne 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

Paramètres

projectId
ProjectId

Retours

S’applique à

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

Obtient l’associé Project à un symbole d’assembly.

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

Paramètres

assemblySymbol
IAssemblySymbol
cancellationToken
CancellationToken

Retours

S’applique à