Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

IServer::CreateObject

The IServer::CreateObject method creates an instance of a server component. For more information, see the CreateObject method of the Server object.

HRESULT CreateObject(

BSTR bstrProgID,

IDispatch ** ppDispObject

);

Parameters: IServer::CreateObject

bstrProgID

A binary string that contains the progID of the object.

ppDispObject

Points to an IDispatch interface pointer.

Remarks: IServer::CreateObject

By default, objects created by the Server.CreateObject method have page scope. This means that they are automatically destroyed by the server when it finishes processing the current ASP page.

To create an object with session or application scope, you can either use the <OBJECT> tag and set the SCOPE attribute to SESSION or APPLICATION, or store the object in a session or application variable.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.