共用方式為


RoutePolicy 類別

定義

RoutePolicy 類別可用來代表特殊 PDP 內容/APN 的流量路由原則。

public ref class RoutePolicy sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Connectivity.IRoutePolicyFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RoutePolicy final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Connectivity.IRoutePolicyFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class RoutePolicy final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Connectivity.IRoutePolicyFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RoutePolicy
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Connectivity.IRoutePolicyFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class RoutePolicy
function RoutePolicy(connectionProfile, hostName, type)
Public NotInheritable Class RoutePolicy
繼承
Object Platform::Object IInspectable RoutePolicy
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

建構函式

RoutePolicy(ConnectionProfile, HostName, DomainNameType)

使用定義的連線設定檔和主機名稱值,建立 RoutePolicy 的實例。

屬性

ConnectionProfile

擷取存取點連線的連接設定檔。

HostName

提供路由原則的主機名稱至特殊 PDP 內容。

HostNameType

指出 HostName 是否為尾碼或完整功能變數名稱參考。 可能的值為 DomainNameType所定義。

適用於

另請參閱