Share via


ImportResource Method

Reads the specified resource, resource properties, and attributes from the specified file, and writes them to the Commerce Server database.

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

Syntax

'Declaration
Public Sub ImportResource ( _
    bstrFileName As String _
)
'Usage
Dim instance As SiteConfigFreeThreaded
Dim bstrFileName As String

instance.ImportResource(bstrFileName)
public void ImportResource(
    string bstrFileName
)
public:
void ImportResource(
    String^ bstrFileName
)
public function ImportResource(
    bstrFileName : String
)

Parameters

Remarks

This method is the complement of the ExportResource method. It uses the file that ExportResource creates.

This method is only supported for cases where the resource does not already exist. To import a new resource over an existing resource, the existing resource must first be deleted from the configuration database.

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

Permissions

See Also

Reference

SiteConfigFreeThreaded Class

SiteConfigFreeThreaded Members

Microsoft.CommerceServer.Interop.Configuration Namespace