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

ArmAppPlatformModelFactory.AppPlatformServiceRequiredTraffic 方法

定义

初始化 AppPlatformServiceRequiredTraffic 的新实例。

public static Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRequiredTraffic AppPlatformServiceRequiredTraffic (string protocol = default, int? port = default, System.Collections.Generic.IEnumerable<System.Net.IPAddress> ips = default, System.Collections.Generic.IEnumerable<string> fqdns = default, Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceTrafficDirection? direction = default);
static member AppPlatformServiceRequiredTraffic : string * Nullable<int> * seq<System.Net.IPAddress> * seq<string> * Nullable<Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceTrafficDirection> -> Azure.ResourceManager.AppPlatform.Models.AppPlatformServiceRequiredTraffic
Public Shared Function AppPlatformServiceRequiredTraffic (Optional protocol As String = Nothing, Optional port As Nullable(Of Integer) = Nothing, Optional ips As IEnumerable(Of IPAddress) = Nothing, Optional fqdns As IEnumerable(Of String) = Nothing, Optional direction As Nullable(Of AppPlatformServiceTrafficDirection) = Nothing) As AppPlatformServiceRequiredTraffic

参数

protocol
String

所需流量的协议。

port
Nullable<Int32>

所需流量的端口。

ips
IEnumerable<IPAddress>

所需流量的 IP 列表。

fqdns
IEnumerable<String>

所需流量的 FQDN 列表。

direction
Nullable<AppPlatformServiceTrafficDirection>

所需流量的方向。

返回

用于模拟的新 AppPlatformServiceRequiredTraffic 实例。

适用于