Compilation.GetEntryPoint(CancellationToken) 方法

定义

返回主方法,该方法将用作程序集的入口点(如果它是可执行 (而不是脚本) )。

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

返回

适用于