KestrelConfigurationLoader.AnyIPEndpoint 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| AnyIPEndpoint(Int32) | 使用 IPv6 [::] 侦听所有 IP,如果不支持 IPv6,则侦听 IPv4 0.0.0.0。 | 
| AnyIPEndpoint(Int32, Action<ListenOptions>) | 使用 IPv6 [::] 侦听所有 IP,如果不支持 IPv6,则侦听 IPv4 0.0.0.0。 | 
AnyIPEndpoint(Int32)
使用 IPv6 [::] 侦听所有 IP,如果不支持 IPv6,则侦听 IPv4 0.0.0.0。
public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ AnyIPEndpoint(int port);public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader AnyIPEndpoint(int port);member this.AnyIPEndpoint : int -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoaderPublic Function AnyIPEndpoint (port As Integer) As KestrelConfigurationLoader参数
- port
- Int32
返回
适用于
AnyIPEndpoint(Int32, Action<ListenOptions>)
使用 IPv6 [::] 侦听所有 IP,如果不支持 IPv6,则侦听 IPv4 0.0.0.0。
public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ AnyIPEndpoint(int port, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader AnyIPEndpoint(int port, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);member this.AnyIPEndpoint : int * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoaderPublic Function AnyIPEndpoint (port As Integer, configure As Action(Of ListenOptions)) As KestrelConfigurationLoader参数
- port
- Int32
- configure
- Action<ListenOptions>