Partager via


TelephonyManager.SetVoiceMailNumber(String, String) Method

Definition

Sets the voice mail number.

[Android.Runtime.Register("setVoiceMailNumber", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetSetVoiceMailNumber_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=22)]
public virtual bool SetVoiceMailNumber (string? alphaTag, string? number);
[<Android.Runtime.Register("setVoiceMailNumber", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetSetVoiceMailNumber_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=22)>]
abstract member SetVoiceMailNumber : string * string -> bool
override this.SetVoiceMailNumber : string * string -> bool

Parameters

alphaTag
String

The alpha tag to display.

number
String

The voicemail number.

Returns

Attributes

Remarks

Sets the voice mail number.

Requires that the calling app has carrier privileges (see #hasCarrierPrivileges).

Java documentation for android.telephony.TelephonyManager.setVoiceMailNumber(java.lang.String, java.lang.String).

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