Export (0) Print
Expand All

GlobalConfig2 Object [C++]

Commerce Server 2002

Use this object to accomplish the following:

  • Create or delete resource configuration information
  • Save any updated global configuration information to the Administration database
  • Add a site
Depending on how you add your own custom resource, you should be able to use this object to access configuration settings from the Administration database.

Ee810481.note(en-US,CS.20).gif Note

  • In Microsoft Internet Information Services (IIS) 6.0, objects are created in the configured application pool for the site, and you can configure each application pool to run as a different user. In order for Commerce Server Config objects to work with IIS 6.0, you must add the application pool user name to COM+. By default, the default application pool runs as "Network Service", with the local user account name being SERVICE.
ProgID:  Commerce.GlobalConfig2 (Externally creatable)
COM Class Name:  GlobalConfig2
Type Library Name:  Microsoft Commerce 2002 Configuration Type Library
DLL Name:  MSCSCfg.dll
Threading Model:  Apartment
[C++]
COM Interface Name:  _GlobalConfig2
Interface ID Constant:  None
Header File:  None

[C++] In C++, use the _GlobalConfig2 interface to access the properties and methods of the GlobalConfig2 object.

Methods

[C++]
MethodDescription
CreateServiceConfigCreates and writes configuration information for the specified resource to the Administration database.
CreateSiteConfigCreates a site.
DeleteServiceConfigDeletes configuration information for the specified resource.
DeleteSiteConfigDeletes the specified configuration for the site and all configurations for the associated resources.
GetGlobalResourcesRetrieves a list of all the names of the resources from the Resources table in the Administration database.
GetIfCollectionConverts values read from the Fields property into appropriate objects such as a SimpleList object or a Variant Array.
GetRefSitesRetrieves a list of names of sites that reference the given resource.
GetResourcePropAttribGets a dictionary of key/value pairs that denote the attributes of the specified property of the specified resource.
InitializeLoads the global configuration data from the Administration database.
MakeArrayFromSimpleListConverts the specified SimpleList object into an Array.
MakeArrayFromStringConverts values read from the Fields property into an Array.
MakeSimpleListFromArrayConverts an Array into a SimpleList object.
MakeStringFromArrayConverts an Array into an encoded string, which can be written to the Fields property.
MakeStringFromSimpleListConverts a SimpleList object into an encoded string, which can be written to the Fields property.
SaveConfigSaves the global configuration settings to the Administration database.
SitesReturns a list of all of the sites available in the administration data store.
[Visual Basic]
MethodDescription
CreateServiceConfigCreates and writes configuration information for the specified resource to the Administration database.
CreateSiteConfigCreates a site.
DeleteServiceConfigDeletes configuration information for the specified resource.
DeleteSiteConfigDeletes the specified configuration for the site and all configurations for the associated resources.
GetGlobalResourcesRetrieves a list of all the names of the resources from the Resources table in the Administration database.
GetIfCollectionConverts values read from the Fields property into appropriate objects such as a SimpleList object or a Variant Array.
GetRefSitesRetrieves a list of names of sites that reference the given resource.
GetResourcePropAttribGets a dictionary of key/value pairs that denote the attributes of the specified property of the specified resource.
InitializeLoads the global configuration data from the Administration database.
MakeArrayFromSimpleListConverts the specified SimpleList object into an Array.
MakeArrayFromStringConverts values read from the Fields property into an Array.
MakeSimpleListFromArrayConverts an Array into a SimpleList object.
MakeStringFromArrayConverts an Array into an encoded string, which can be written to the Fields property.
MakeStringFromSimpleListConverts a SimpleList object into an encoded string, which can be written to the Fields property.
SaveConfigSaves the global configuration settings to the Administration database.
SitesReturns a list of all of the sites available in the administration data store.
Properties
[C++]
PropertyTypeDescription
FieldsFieldsReturns group-level configuration data.

This property is read-only.

[Visual Basic]
PropertyTypeDescription
FieldsFieldsReturns group-level configuration data.

This property is read-only.

See Also

Integrating Custom Resources

Configuration Objects

[C++] SiteConfig Object

[C++] SiteConfigReadOnly Object

[Visual Basic] SiteConfig Object

[Visual Basic] SiteConfigReadOnly Object

Copyright © 2005 Microsoft Corporation.
All rights reserved.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft