Compilation.GetEntryPoint(CancellationToken) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Gibt die Main-Methode zurück, die als Einstiegspunkt der Assembly dient, wenn sie ausführbare Datei (und kein Skript) ist.
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
Parameter
- cancellationToken
- CancellationToken