Partager via


TelephonyManager.VoiceMailNumber Property

Definition

Returns the voice mail number.

public virtual string? VoiceMailNumber { [Android.Runtime.Register("getVoiceMailNumber", "()Ljava/lang/String;", "GetGetVoiceMailNumberHandler")] [Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")] get; }
[<get: Android.Runtime.Register("getVoiceMailNumber", "()Ljava/lang/String;", "GetGetVoiceMailNumberHandler")>]
[<get: Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
member this.VoiceMailNumber : string

Property Value

Attributes

Remarks

Returns the voice mail number. Return null if it is unavailable.

Requires Permission: android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE or that the calling app has carrier privileges (see #hasCarrierPrivileges).

Java documentation for android.telephony.TelephonyManager.getVoiceMailNumber().

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