Windows.Networking.Connectivity Namespace

確立されたネットワーク接続に関する接続、使用状況、およびデータ計画の情報を提供する接続プロファイルを取得します。接続先のアプリケーションはこのデータを使用して、困難なネットワーク シナリオに対処したり、ネットワーク プロバイダーによって設定されたデータ計画の制限に従ったりできます。

メンバー

Windows.Networking.Connectivity名前空間 には次の種類のメンバーがあります。

クラス

Windows.Networking.Connectivity名前空間 にはこれらのクラスがあります。

クラス説明
CellularApnContext This class contains properties used to specify an Access Point Name (APN) for a 3GPP based cellular Data Connection (PDP context).
ConnectionCost Provides access to property values that indicate the current cost of a network connection.
ConnectionProfile Represents a network connection, which includes either the currently connected network or prior network connections. Provides information about the connection status and connectivity statistics.
ConnectionProfileFilter The ConnectionProfileFilter class defines a set of properties that are used to improve the relevance of FindConnectionProfilesAsync results.
ConnectionSession The ConnectionSession class is used to represent a connection to an access point established with AcquireConnectionAsync.
ConnectivityInterval Provides the start time and duration for an established or prior connection.
ConnectivityManager Methods defined by the ConnectivityManager class enable enforcement of traffic routing on a specific network adapter for the specified destination suffix.
DataPlanStatus Represents the current status information for the data plan associated with a connection.
DataPlanUsage Represents data plan specific data usage information for a connection.
DataUsage Represents data usage information returned by the ConnectionProfile.GetLocalUsage method.
IPInformation Represents the association between an IP address and an adapter on the network.
LanIdentifier Represents physical identification data for a specific NetworkAdapter object.
LanIdentifierData Represents the port specific data that enables LAN locality capabilities.
NetworkAdapter Represents a network adapter.
NetworkInformation Provides access to network connection information for the local machine.
NetworkItem Represents a connected network.
NetworkSecuritySettings Represents the current network security settings.
NetworkStateChangeEventDetails Indicates which properties of a network have changed after a network state change background trigger.
NetworkUsage Represents network usage statistics returned by the ConnectionProfile.GetNetworkUsageAsync method.
ProxyConfiguration Represents the proxy configuration for the current user.
RoutePolicy The RoutePolicy class is used to represent the traffic routing policy for a special PDP Context/APN .
WlanConnectionProfileDetails Used to access information specific to a WLAN connection.
WwanConnectionProfileDetails Used to access information specific to a WWAN connection.

 

デリゲート

Windows.Networking.Connectivity名前空間 にはこれらのデリゲートがあります。

Delegate説明
NetworkStatusChangedEventHandler Represents the method that handles network status change notifications. This method is called when any properties exposed by the NetworkInformation object changes while the app is active.

 

列挙型

Windows.Networking.Connectivity名前空間 には以下の列挙体があります。

列挙型説明
CellularApnAuthenticationType Defines values that indicate the authentication type used for a APN. These values are referenced when providing APN details using a CellularApnContext object.
DataUsageGranularity Defines levels of granularity used when retrieving data usage statistics with GetNetworkUsageAsync
DomainConnectivityLevel Defines the domain authentication status for a network connection.
NetworkAuthenticationType Defines values that indicate the type of authentication used by the network.
NetworkConnectivityLevel Defines the level of connectivity currently available.
NetworkCostType Defines the network cost types.
NetworkEncryptionType Defines values that indicate the type of encryption used for authentication.
NetworkTypes Defines the network connection types.
RoamingStates Defines the roaming states.
TriStates Used with the NetworkUsageStates structure to define the desired roaming state and shared state of a network connection.
WwanDataClass Defines values used to indicate the class of data service provided by a WWAN network connection.
WwanNetworkRegistrationState Defines the network registration states for a WWAN connection.

 

構造体

Windows.Networking.Connectivity名前空間 にはこれらの構造体があります。

構造体説明
NetworkUsageStates Defines the desired state of the connection profile for which usage data is returned by the method GetNetworkUsageAsync.

 

要件

最小限サポートされるクライアント

Windows 8

最小限サポートされるサーバー

Windows Server 2012

最小限サポートされる携帯電話

Windows Phone 8

名前空間

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

メタデータ

Windows.winmd

参照

クイック スタート: ネットワーク接続情報の取得
Quickstart: 接続イベントと可用性の変更の管理
クイックスタート: 従量制課金接続におけるコスト制約の管理

 

 

表示:
© 2014 Microsoft