共用方式為


EndpointHttpContextExtensions.GetEndpoint(HttpContext) 方法

定義

取得 Endpoint 目前要求的 擴充方法。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Http::Endpoint ^ GetEndpoint(Microsoft::AspNetCore::Http::HttpContext ^ context);
public static Microsoft.AspNetCore.Http.Endpoint GetEndpoint (this Microsoft.AspNetCore.Http.HttpContext context);
public static Microsoft.AspNetCore.Http.Endpoint? GetEndpoint (this Microsoft.AspNetCore.Http.HttpContext context);
static member GetEndpoint : Microsoft.AspNetCore.Http.HttpContext -> Microsoft.AspNetCore.Http.Endpoint
<Extension()>
Public Function GetEndpoint (context As HttpContext) As Endpoint

參數

context
HttpContext

內容 HttpContext

傳回

Endpoint

適用於