語言

HttpConnectionFeature 類別

定義

的預設實作 IHttpConnectionFeature 。

public ref class HttpConnectionFeature : Microsoft::AspNetCore::Http::Features::IHttpConnectionFeature
public class HttpConnectionFeature : Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature
type HttpConnectionFeature = class
    interface IHttpConnectionFeature
Public Class HttpConnectionFeature
Implements IHttpConnectionFeature
繼承
HttpConnectionFeature
實作

建構函式

名稱 Description
HttpConnectionFeature()

的預設實作 IHttpConnectionFeature 。

屬性

名稱 Description
ConnectionId

取得或設定收到要求之連接的唯一識別碼。 這主要是用於診斷用途。

LocalIpAddress

取得或設定接收要求的本機 IPAddress。

LocalPort

取得或設定收到要求的本機埠。

RemoteIpAddress

取得或設定發出要求之用戶端的 IPAddress。 請注意,這可能適用于 Proxy,而不是使用者。

RemotePort

取得或設定發出要求之用戶端的遠端埠。

適用於