Platform SDK: CDO for Windows 2000

SaveToContainer Method

The SaveToContainer method is currently not implemented. It is reserved for future use.

[Visual Basic,VBScript]
Sub SaveToContainer(
    ByVal ContainerURL as String,
    ByVal ActiveConnection as Object,
   [ByVal Mode as ConnectModeEnum],
   [ByVal CreateOptions as RecordCreateOptionsEnum],
   [ByVal Options as RecordOpenOptionsEnum],
   [ByVal UserName as String],
   [ByVal Password as String]
)
[C++]
HRESULT SaveToContainer(
   BSTR ContainerURL,
   IDispatch* ActiveConnection = 0,
   ConnectModeEnum Mode,
   RecordCreateOptionsEnum CreateOptions,
   RecordOpenOptionsEnum Options,
   BSTR UserName,
   BSTR Password
);
[IDL]
HRESULT SaveToContainer(
    [in]           BSTR ContainerURL, 
    [in, defaultvalue(0)] IDispatch* ActiveConnection, 
    [in, optional] ConnectModeEnum Mode, 
    [in, optional] RecordCreateOptionsEnum CreateOptions, 
    [in, optional] RecordOpenOptionsEnum Options, 
    [in, optional] BSTR UserName, 
    [in, optional] BSTR Password);

Parameters

ContainerURL
The Uniform Resource Locator (URL) of the folder or collection resource into which the item is to be saved.
ActiveConnection
Specifies the optional connection to use when saving. This is an IDispatch interface to an Microsoft® ActiveX® Data Objects (ADO) Connection object. A new connection (session) is implicitly created if none is specified.
Mode
An ADO-defined access mode for the record set.
CreateOptions
A set of flags that specify creation options.
Options
Specifies options flag or (flags) used when opening the source. Your option is always ORed with adOpenSource.
UserName
This is used to pass a user name.
Password
This is used to pass a password.