[History is no longer available for use as of Windows Vista. See Windows Messenger for more information.]
Returns the text from the history of the conversation window.
This property is read-only.
HRESULT get_History( [out, retval] BSTR *bstrHistoryText );
Pointer to a BSTR that contains the text of the conversation window.
Returns one of the following values.
||Client was not signed in to the primary service at the time this method was called; or, the conversation window is closed.
||Could not bring focus to the window.
||bstrHistoryText is a NULL pointer.
The following table lists error codes returned by this method.
|0x80004005||Client was not signed in to the primary service at the time this method was called; or, the conversation window is closed.|
The History property not scriptable.
This property is not available for scripting languages.
The following Visual Basic example shows the use of this method.
Public WithEvents MsgrUIA As MessengerAPI.Messenger Public mWindow2 As MessengerAPI.IMessengerConversationWnd Private Sub btnWindow2History_Click() On Error Resume Next Dim strContactName_0 as String 'Launch a Conversation window with an online contact '(where strContactName_0 is the online contact's signinname) Set mWindow2 = MsgrUIA.InstantMessage (strContactName_0) MsgBox mWindow2.History ErrorTrap ("IMessengerConversationWnd.History") 'Error handling routine End Sub
|End of client support
|End of server support
||Windows Server 2003