IRTCPresenceContact::Persistent

This method sets or gets a value indicating if the presence contact is persistent.

HRESULT put_Persistent( 
  VARIANT_BOOL fPersistent 
);
HRESULT get_Persistent(
  VARIANT_BOOL* pfPersistent
);

Parameters

  • fPersistent, pfPersistent
    [in, out] VARIANT_TRUE if the contact is persistent, which means that presence information for the contact is available. VARIANT_FALSE if the contact is not persistent.

Return Values

This method can return an RTC_E_ constant. The following table shows the possible return values.

Value Description
E_FAIL There is no persistence type for this contact.

Remarks

Buddies and watchers are saved to persistent storage when presence is enabled with storage. The IRTCClientPresence::Export and IRTCClientPresence::Import methods will also save the contacts to a file that is not part of the persistent storage. For more information, see IRTCClientPresence::EnablePresence.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Rtcdll.dll.

See Also

Communications Service | IRTCClientPresence::EnablePresence | IRTCClientPresence::Export | IRTCClientPresence::Import | IRTCPresenceContact

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.