Share via


Note Constructor (String, String)

Create an instance of of the Note class.

Namespace:  Microsoft.Rtc.Collaboration.Presence
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Sub New ( _
    outOfOfficeMessage As String, _
    smtpAddress As String _
)
'Usage
Dim outOfOfficeMessage As String
Dim smtpAddress As String

Dim instance As New Note(outOfOfficeMessage, _
    smtpAddress)
public Note(
    string outOfOfficeMessage,
    string smtpAddress
)

Parameters

  • outOfOfficeMessage
    Type: System.String
    An out-of-office (OOF) message.
  • smtpAddress
    Type: System.String
    SMTP address associated with the OOF message.

Exceptions

Exception Condition
ArgumentNullException

Thrown when outOfOfficeMessage or smtpAddress is null.

ArgumentException

Thrown when smtpAddress is an empty string.

Remarks

The smtpAddress is used to determine the instance id of the Note message during publication and is not published with the note.

See Also

Reference

Note Class

Note Members

Note Overload

Microsoft.Rtc.Collaboration.Presence Namespace