SiteConfig.ExportResource Method (PIA)
Use this method to write the specified resource, resource properties, and attributes to the specified file.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Sub ExportResource(bstrResourceName As String,
bstrFileName As String)
[C#]
using Microsoft.CommerceServer.Interop.Configuration;
…
public void ExportResource(stringbstrResourceName,
stringbstrFileName);
Parameters
[Visual Basic .NET]
- bstrResourceName
A String that contains the resource name. - bstrFileName
A String that contains the destination file name for the resource export.
[C#]
- bstrResourceName
A string that contains the resource name. - bstrFileName
A string that contains the destination file name for the resource export.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Remarks
The Initialize method must be called before this method can be used.
This method and the ImportResource method are complements of each other. This method creates the file that ImportResource consumes.
[Visual Basic .NET]
Example
' sMyResource and sMyFileName.txt are strings
' oSiteConfig is a Commerce SiteConfig object
oSiteConfig.ExportResource(sMyResource, sMyFileName.txt)
Requirements
Namespace: Microsoft.CommerceServer.Interop.Configuration
Platforms: Windows 2000, Windows Server 2003
Assembly: cs_mscscfg (in cs_mscscfg.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.