Share via


CreateComponentConfig Method

Create an instance of a configuration schema class, and load it 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 CreateComponentConfig ( _
    bstrResourceName As String, _
    bstrConfigSchemaClass As String _
)
'Usage
Dim instance As SiteConfigFreeThreaded
Dim bstrResourceName As String
Dim bstrConfigSchemaClass As String

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

Parameters

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

Remarks

This method creates an instance of the class specified in the bstrConfigSchemaClass parameter, and sets the Name property of the instance to the name specified in the bstrResourceName parameter. It loads the instance into the site recordset.

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

This method calls the SaveConfig method.

Permissions

See Also

Reference

SiteConfigFreeThreaded Class

SiteConfigFreeThreaded Members

Microsoft.CommerceServer.Interop.Configuration Namespace