DevForce Help Reference
CopyFromAssembly Method


The assembly where the source file is embedded
The unqualified name of the embedded file
The filename to write to. May include directory information
Whether to overwrite the destination file if it already exists
Copies an embedded file from a specified assembly to a new location.
Syntax
'Declaration
 
Public Shared Sub CopyFromAssembly( _
   ByVal pSourceAssembly As Assembly, _
   ByVal pSourceItemName As String, _
   ByVal pDestFileName As String, _
   ByVal pOverwrite As Boolean _
) 
'Usage
 
Dim pSourceAssembly As Assembly
Dim pSourceItemName As String
Dim pDestFileName As String
Dim pOverwrite As Boolean
 
ReflectionFns.CopyFromAssembly(pSourceAssembly, pSourceItemName, pDestFileName, pOverwrite)

Parameters

pSourceAssembly
The assembly where the source file is embedded
pSourceItemName
The unqualified name of the embedded file
pDestFileName
The filename to write to. May include directory information
pOverwrite
Whether to overwrite the destination file if it already exists
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ReflectionFns Class
ReflectionFns Members

Send Feedback