RDS DataSpace Object

[Previous] [Next]

While the DataControl object simplifies communicating with databases across the Internet, the DataSpace object provides comparable functionality for business objects. The DataSpace object isn't nearly as complex as the DataControl object because it exposes only one property and only one method. However, that property and method provide all the flexibility you need to access business objects running on your server.

InternetTimeout Property

The InternetTimeout property on the DataSpace object is identical to the InternetTimeout property on the DataControl object. For more information, see "InternetTimeout property."

CreateObject Method

Use the CreateObject method to instantiate a business object on your IIS server. This method accepts two string parameters:

  • bstrProgID This required parameter specifies the ProgID for the business object.
  • bstrConnection This required parameter tells RDS where to create the object and which protocol to use.

The syntax for the CreateObject method differs slightly depending on the protocol you're using. Here are examples of using this method with the possible protocols.

 'Instantiate the object through HTTP. 'You can reference an IIS server on your local network or over the ' Internet. Set MyObject = DataSpace.CreateObject("MyServer.MyClass", _ "http://www.microsoft.com") 'Instantiate the object through HTTPS. 'You can reference an IIS server on your local network or over the ' Internet. Set MyObject = DataSpace.CreateObject("MyServer.MyClass", _ "https://www.microsoft.com") 'Instantiate the object through DCOM. 'This syntax works only when you're connected to your network. Set MyObject = DataSpace.CreateObject("MyServer.MyClass", _ "MyIISServer") 'Instantiate the object locally. 'Use this syntax if you have your business object installed ' on the machine where you're running your code. Set MyObject = DataSpace.CreateObject("MyServer.MyClass", "") 



Programming ADO
Programming MicrosoftВ® ADO.NET 2.0 Core Reference
ISBN: B002ECEFQM
EAN: N/A
Year: 2000
Pages: 131
Authors: David Sceppa

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net