Freigeben über


CreateServiceConfig Method

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
Public Sub CreateServiceConfig ( _
    bstrResourceName As String, _
    bstrConfigSchemaClass As String _
)
'Usage
Dim instance As GlobalConfigFreeThreaded
Dim bstrResourceName As String
Dim bstrConfigSchemaClass As String

instance.CreateServiceConfig(bstrResourceName, _
    bstrConfigSchemaClass)
public void CreateServiceConfig(
    string bstrResourceName,
    string bstrConfigSchemaClass
)
public:
virtual void CreateServiceConfig(
    String^ bstrResourceName, 
    String^ bstrConfigSchemaClass
) sealed
public final 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.

Implements

IGlobalConfig..::.CreateServiceConfig(String, String)

Remarks

Implements IGlobalConfig.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. This method calls the SaveConfig method.

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

Permissions

See Also

Reference

GlobalConfigFreeThreaded Class

GlobalConfigFreeThreaded Members

Microsoft.CommerceServer.Interop.Configuration Namespace