共用方式為


EndpointHttpContextExtensions.SetEndpoint(HttpContext, Endpoint) 方法

定義

用於設定 Endpoint 目前要求的 擴充方法。

public:
[System::Runtime::CompilerServices::Extension]
 static void SetEndpoint(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Http::Endpoint ^ endpoint);
public static void SetEndpoint (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.Endpoint endpoint);
public static void SetEndpoint (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.Endpoint? endpoint);
static member SetEndpoint : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Http.Endpoint -> unit
<Extension()>
Public Sub SetEndpoint (context As HttpContext, endpoint As Endpoint)

參數

context
HttpContext

內容 HttpContext

endpoint
Endpoint

Endpoint

適用於