IdeaBlade DevForce 2010 Help Reference
CopyFromAssembly Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > ReflectionFns Class : CopyFromAssembly Method



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
Copies an embedded file from a specified assembly to a new location.

Syntax

Visual Basic (Declaration) 
Public Shared Sub CopyFromAssembly( _
   ByVal pSourceAssembly As Assembly, _
   ByVal pSourceItemName As String, _
   ByVal pDestFileName As String, _
   ByVal pOverwrite As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim pSourceAssembly As Assembly
Dim pSourceItemName As String
Dim pDestFileName As String
Dim pOverwrite As Boolean
 
ReflectionFns.CopyFromAssembly(pSourceAssembly, pSourceItemName, pDestFileName, pOverwrite)
C# 
public static void CopyFromAssembly( 
   Assembly pSourceAssembly,
   string pSourceItemName,
   string pDestFileName,
   bool pOverwrite
)
C++/CLI 
public:
static void CopyFromAssembly( 
   Assembly^ pSourceAssembly,
   String^ pSourceItemName,
   String^ pDestFileName,
   bool 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.