Back to product page

Add method


Adds new contact to the collection.

Type

XMPPContact object

Syntax

  • Basic
object.Add (Contact)
The Add(object,Contact) syntax has these parts:
objectAn expression evaluating to an object of type XMPPContacts
ContactString.

Remarks

This method will add a new contact to your Contacts Collection. You should specify Contact argument, which should be a JID. Adding Contact doesn't mean he will appear online on your contact list - you still have to ask for authorization through Subscribe method. However, once contact is added, you can, for example, send messages to this contact.

Platforms

Windows