Note Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Note(PresenceCategoryWithMetaData) |
Create an instance of of the Note class. |
Note(String) |
Create an instance of of the Note class. |
Note(String, String) |
Create an instance of of the Note class. |
Note(PresenceCategoryWithMetaData)
Create an instance of of the Note class.
public:
Note(Microsoft::Rtc::Collaboration::Presence::PresenceCategoryWithMetaData ^ category);
public Note (Microsoft.Rtc.Collaboration.Presence.PresenceCategoryWithMetaData category);
new Microsoft.Rtc.Collaboration.Presence.Note : Microsoft.Rtc.Collaboration.Presence.PresenceCategoryWithMetaData -> Microsoft.Rtc.Collaboration.Presence.Note
Public Sub New (category As PresenceCategoryWithMetaData)
Parameters
- category
- PresenceCategoryWithMetaData
Exceptions
Thrown when category
is null.
If category.Name is anything other than the PresenceCategoryNames.Note or the xml representing category.Category provided is invalid.
Applies to
Note(String)
Create an instance of of the Note class.
public:
Note(System::String ^ personalNoteMessage);
public Note (string personalNoteMessage);
new Microsoft.Rtc.Collaboration.Presence.Note : string -> Microsoft.Rtc.Collaboration.Presence.Note
Public Sub New (personalNoteMessage As String)
Parameters
- personalNoteMessage
- String
Message in the personal note.
Exceptions
Thrown when personalNoteMessage
is null.
Applies to
Note(String, String)
Create an instance of of the Note class.
public:
Note(System::String ^ outOfOfficeMessage, System::String ^ smtpAddress);
public Note (string outOfOfficeMessage, string smtpAddress);
new Microsoft.Rtc.Collaboration.Presence.Note : string * string -> Microsoft.Rtc.Collaboration.Presence.Note
Public Sub New (outOfOfficeMessage As String, smtpAddress As String)
Parameters
- outOfOfficeMessage
- String
An out-of-office (OOF) message.
- smtpAddress
- String
SMTP address associated with the OOF message.
Exceptions
Thrown when outOfOfficeMessage
or smtpAddress
is null.
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.