共用方式為


Compilation.GetEntryPoint(CancellationToken) 方法

定義

傳回 Main 方法,如果它是可執行 (,而不是腳本) ,則會作為元件的進入點。

public:
 Microsoft::CodeAnalysis::IMethodSymbol ^ GetEntryPoint(System::Threading::CancellationToken cancellationToken);
public Microsoft.CodeAnalysis.IMethodSymbol GetEntryPoint (System.Threading.CancellationToken cancellationToken);
public Microsoft.CodeAnalysis.IMethodSymbol? GetEntryPoint (System.Threading.CancellationToken cancellationToken);
member this.GetEntryPoint : System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
Public Function GetEntryPoint (cancellationToken As CancellationToken) As IMethodSymbol

參數

cancellationToken
CancellationToken

傳回

適用於