你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ApplicationGatewayListener.DefinitionStages.WithFrontendPort<ParentT> 接口

类型参数

ParentT

附加此定义后要返回到的父应用程序网关定义的阶段

public interface WithFrontendPort

应用程序网关前端侦听器定义的阶段,允许指定要与之关联的前端端口。

方法摘要

修饰符和类型 方法和描述
ApplicationGatewayListener.DefinitionStages.WithAttach<ParentT> withFrontendPort(int portNumber)

使侦听器能够侦听指定的前端端口号。

如果此端口号的前端端口尚不存在,则将创建一个具有自动生成名称的新端口。

ApplicationGatewayListener.DefinitionStages.WithAttach<ParentT> withFrontendPort(String name)

使侦听器能够侦听指定的现有前端端口。

方法详细信息

withFrontendPort

public WithAttach withFrontendPort(int portNumber)

使侦听器能够侦听指定的前端端口号。

如果此端口号的前端端口尚不存在,则将创建一个具有自动生成名称的新端口。

Parameters:

portNumber - 端口号

Returns:

定义的下一阶段

withFrontendPort

public WithAttach withFrontendPort(String name)

使侦听器能够侦听指定的现有前端端口。

Parameters:

name - 现有前端端口的名称

Returns:

定义的下一阶段

适用于