Determining Component Scope

Scope refers to how you instantiate your component in IIS. You do not have any direct control over the scope that a script writer will assign to your component. They can place it in applications, sessions, or pages. In designing your component, however, you should be aware of the implications scope has on performance. The component design guidelines summarize these implications.

An object instance can be created either with the Server.CreateObject command or with the <OBJECT> tag. For a majority of components, the most appropriate way for you to create an object instance is to use the <OBJECT> tag in the ASP script that requires the functionality offered by your component. This is known as page level scope.

For more information on setting scope, see Web Applications.