PhoneVoicemail PhoneVoicemail PhoneVoicemail PhoneVoicemail Class

Definition

Represents the voice mail data associated with a PhoneLine instance.

public : sealed class PhoneVoicemail : IPhoneVoicemailpublic sealed class PhoneVoicemail : IPhoneVoicemailPublic NotInheritable Class PhoneVoicemail Implements IPhoneVoicemail// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced v1)

Properties

MessageCount MessageCount MessageCount MessageCount

Get the current count of voice mail messages associated with the PhoneLine instance. A value of -1 indicates an "indeterminate" number of messages.

public : int MessageCount { get; }public int MessageCount { get; }Public ReadOnly Property MessageCount As int// You can use this property in JavaScript.
Value
int int int int

The current count of voice mail messages.

Number Number Number Number

Gets the access number for the voice mail associated with the PhoneLine instance. The phone user can dial the access number to access the voice mail account.

public : PlatForm::String Number { get; }public string Number { get; }Public ReadOnly Property Number As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The access number.

Type Type Type Type

Get the type of the voice mail associated with the PhoneLine instance.

public : PhoneVoicemailType Type { get; }public PhoneVoicemailType Type { get; }Public ReadOnly Property Type As PhoneVoicemailType// You can use this property in JavaScript.

Methods

DialVoicemailAsync() DialVoicemailAsync() DialVoicemailAsync() DialVoicemailAsync()

Dials a call to the voice mail access number.

public : IAsyncAction DialVoicemailAsync()public IAsyncAction DialVoicemailAsync()Public Function DialVoicemailAsync() As IAsyncAction// You can use this method in JavaScript.
Returns

An asynchronous dial operation.

Remarks

In order to use this method, the calling application needs to be in the foreground. In addition, the PhoneLine instance needs to support outbound calls. Use CanDial to verify whether or not that is supported.