Platform SDK: CDO for Windows 2000

Open Method

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

[Visual Basic,VBScript]
Sub Open(
    ByVal SourceURL 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 Open(BSTR SourceURL,
   IDispatch* ActiveConnection = 0,
   ConnectModeEnum Mode,
   RecordCreateOptionsEnum CreateOptions,
   RecordOpenOptionsEnum Options,
   BSTR UserName,
   BSTR Password
);
[IDL]
HRESULT Open(
   [in] BSTR SourceURL,
   [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

SourceURL
Specifies the Uniform Resource Locator (URL) of the object to open.
ActiveConnection
Specifies the connection to use when opening. This is an IDispatch interface to an Microsoft® ActiveX® Data Objects (ADO) Connection object.
Mode
An ADO-defined access mode for the Record or Recordset.
CreateOptions
ADO-defined flags that specifies various creation options.
Options
Specifies options flag opening the source. The only supported open option is adOpenAsynch. Your options setting is always ORed with adOpenSource.
UserName
Used to pass a user id if needed for accessing the data.
Password
Used to pass a password if needed for accessing the data