次の方法で共有


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

戻り値

適用対象