Dijeli putem


CreateServiceConfig Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Creates an instance of the specified class and loads the instance into the site recordset.

Namespace:  Microsoft.CommerceServer.Interop.Configuration
Assembly:  Microsoft.CommerceServer.Interop.Configuration.MSCSCfg (in Microsoft.CommerceServer.Interop.Configuration.MSCSCfg.dll)

Syntax

'Declaration
Sub CreateServiceConfig ( _
    bstrResourceName As String, _
    bstrConfigSchemaClass As String _
)
'Usage
Dim instance As IGlobalConfig
Dim bstrResourceName As String
Dim bstrConfigSchemaClass As String

instance.CreateServiceConfig(bstrResourceName, _
    bstrConfigSchemaClass)
void CreateServiceConfig(
    string bstrResourceName,
    string bstrConfigSchemaClass
)
void CreateServiceConfig(
    String^ bstrResourceName, 
    String^ bstrConfigSchemaClass
)
function CreateServiceConfig(
    bstrResourceName : String, 
    bstrConfigSchemaClass : String
)

Parameters

  • bstrResourceName
    Type: System..::.String
    The new name for the resource configuration object instance.
  • bstrConfigSchemaClass
    Type: System..::.String
    The resource configuration schema class name.

Remarks

Implemented by GlobalConfigFreeThreaded.CreateServiceConfig (CreateServiceConfig).

Use this method to create an instance of the class specified by the bstrConfigSchemaClass parameter, set the Name property of the instance to the name specified in the bstrResourceName parameter, and load the instance into the site recordset.

The Initialize method must be called before this method can be called.

Permissions

See Also

Reference

IGlobalConfig Interface

IGlobalConfig Members

Microsoft.CommerceServer.Interop.Configuration Namespace