Delegate ExtractPackageFileDelegate
Callback invoked to extract a package file.
public delegate string ExtractPackageFileDelegate(string sourceFile, string targetPath, Stream fileStream)
Parameters
sourceFile
stringThe path of the file in the package.
targetPath
stringThe path to write to.
fileStream
StreamThe file Stream.
Returns
- string
The file name if the file was written; otherwise
null
.
Constructors
ExtractPackageFileDelegate(object, nint)
public ExtractPackageFileDelegate(object @object, nint method)
Parameters
Methods
BeginInvoke(string, string, Stream, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(string sourceFile, string targetPath, Stream fileStream, AsyncCallback callback, object @object)
Parameters
sourceFile
stringtargetPath
stringfileStream
Streamcallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual string EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Returns
Invoke(string, string, Stream)
public virtual string Invoke(string sourceFile, string targetPath, Stream fileStream)