Condividi tramite


RoutePolicy Classe

Definizione

La classe RoutePolicy viene usata per rappresentare i criteri di routing del traffico per un contesto PDP/APN speciale.

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
Ereditarietà
Object Platform::Object IInspectable RoutePolicy
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Costruttori

RoutePolicy(ConnectionProfile, HostName, DomainNameType)

Crea un'istanza di RoutePolicy usando i valori del profilo di connessione e del nome host definiti.

Proprietà

ConnectionProfile

Recupera il profilo di connessione per una connessione al punto di accesso.

HostName

Fornisce il nome host per il criterio di route al contesto PDP speciale.

HostNameType

Indica se hostName è un suffisso o un riferimento al nome di dominio completo. I valori possibili sono definiti da DomainNameType.

Si applica a

Vedi anche