ExportResource Method
Writes the specified resource, resource properties, and attributes to the specified file.
Namespace: Microsoft.CommerceServer.Interop.Configuration
Assembly: Microsoft.CommerceServer.Interop.Configuration.MSCSCfg (in Microsoft.CommerceServer.Interop.Configuration.MSCSCfg.dll)
Syntax
'Declaration
Public Sub ExportResource ( _
bstrResourceName As String, _
bstrFileName As String _
)
'Usage
Dim instance As SiteConfigFreeThreaded
Dim bstrResourceName As String
Dim bstrFileName As String
instance.ExportResource(bstrResourceName, _
bstrFileName)
public void ExportResource(
string bstrResourceName,
string bstrFileName
)
public:
void ExportResource(
String^ bstrResourceName,
String^ bstrFileName
)
public function ExportResource(
bstrResourceName : String,
bstrFileName : String
)
Parameters
- bstrResourceName
Type: System..::.String
The name of the resource export.
- bstrFileName
Type: System..::.String
The destination file name for the resource export.
Remarks
This method and the ImportResource method are complements of each other. This method creates the file that ImportResource uses.
The Initialize method must be called before this method can be used.
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.