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