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

NetworkSecurityRule.UpdateDefinitionStages.WithProtocol<ParentT> 接口

类型参数

ParentT

附加此定义后要返回到的父定义的阶段

public interface WithProtocol

允许指定应用规则的协议的安全规则定义的阶段。

方法摘要

修饰符和类型 方法和描述
NetworkSecurityRule.UpdateDefinitionStages.WithAttach<ParentT> withAnyProtocol()

使此规则适用于任何受支持的协议。

NetworkSecurityRule.UpdateDefinitionStages.WithAttach<ParentT> withProtocol(SecurityRuleProtocol protocol)

指定此规则适用的协议。

方法详细信息

withAnyProtocol

public WithAttach withAnyProtocol()

使此规则适用于任何受支持的协议。

Returns:

定义的下一阶段

withProtocol

public WithAttach withProtocol(SecurityRuleProtocol protocol)

指定此规则适用的协议。

Parameters:

protocol - 支持的协议之一

Returns:

定义的下一阶段

适用于