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 GlobalConfig2FreeThreaded
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
IGlobalConfig2..::.CreateServiceConfig(String, String)
Remarks
Implements IGlobalConfig2.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
GlobalConfig2FreeThreaded Class