Update Method
Update Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The Update method calls on the Fields Collection. Changes are updated on the Collaboration Data Objects (CDO) Exchange store Form object.
Applies To
Type Library
Exchange Web Storage System Forms 1.0 Type Library
DLL Implemented In
EXWFORM.DLL
Syntax
[Visual Basic]Sub Update
(
[bstrURL As String],
[bOverwrite As Boolean]
)
[C++]HRESULT Update ( BSTR bstrURL, VARIANT_BOOL bOverwrite );
Parameters
- bstrURL
This parameter contains the URL of the document to be updated. The default value is an empty string. This parameter is optional.- bOverwrite
This parameter specifies whether data can be overwritten. The default value is 0. This parameter is optional.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The Update method saves the data in the fields collection.
The update is transactional. All synchronous events fire when the Update method is called.
Example
This example shows use of the Update method.
<%
SUBJECT = "urn:schemas:mailheader:subject" ... ... oForm.Elements(SUBJECT) = "The world's most interesting subject" oForm.Update %>
<% If oForm.IsNew Then oForm.DataSource.SaveTo "http://myserver/public/myfolder/" & _ oForm.Fields("myfield") End If %>
Send us your feedback about the Microsoft Exchange Server 2003 SDK.
Build: June 2007 (2007.618.1)
© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.