Aracılığıyla paylaş


ConnectivityManager.RequestRouteToHost(ConnectivityType, Int32) Method

Definition

Caution

deprecated

Ensure that a network route exists to deliver traffic to the specified host via the specified network interface.

[Android.Runtime.Register("requestRouteToHost", "(II)Z", "GetRequestRouteToHost_IIHandler")]
[System.Obsolete("deprecated")]
public virtual bool RequestRouteToHost (Android.Net.ConnectivityType networkType, int hostAddress);
[<Android.Runtime.Register("requestRouteToHost", "(II)Z", "GetRequestRouteToHost_IIHandler")>]
[<System.Obsolete("deprecated")>]
abstract member RequestRouteToHost : Android.Net.ConnectivityType * int -> bool
override this.RequestRouteToHost : Android.Net.ConnectivityType * int -> bool

Parameters

networkType
ConnectivityType

the type of the network over which traffic to the specified host is to be routed

hostAddress
Int32

the IP address of the host to which the route is desired

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to