Share via


NetworkInfo.Reason Property

Definition

Report the reason an attempt to establish connectivity failed, if one is available.

public virtual string? Reason { [Android.Runtime.Register("getReason", "()Ljava/lang/String;", "GetGetReasonHandler")] get; }
[<get: Android.Runtime.Register("getReason", "()Ljava/lang/String;", "GetGetReasonHandler")>]
member this.Reason : string

Property Value

the reason for failure, or null if not available

Attributes

Remarks

Report the reason an attempt to establish connectivity failed, if one is available.

This member is deprecated. This method does not have a consistent contract that could make it useful to callers.

Java documentation for android.net.NetworkInfo.getReason().

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