共用方式為


IWithProtocol<ParentT>.WithProtocol(SecurityRuleProtocol) Method

Definition

Specifies the protocol that this rule applies to.

public Microsoft.Azure.Management.Network.Fluent.NetworkSecurityRule.Definition.IWithAttach<ParentT> WithProtocol (Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleProtocol protocol);
abstract member WithProtocol : Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleProtocol -> Microsoft.Azure.Management.Network.Fluent.NetworkSecurityRule.Definition.IWithAttach<'ParentT>
Public Function WithProtocol (protocol As SecurityRuleProtocol) As IWithAttach(Of ParentT)

Parameters

protocol
SecurityRuleProtocol

One of the supported protocols.

Returns

Applies to