Delegate ExtractPackageFileDelegate
Callback invoked to extract a package file.
public delegate string ExtractPackageFileDelegate(string sourceFile, string targetPath, Stream fileStream)
Parameters
sourceFilestringThe path of the file in the package.
targetPathstringThe path to write to.
fileStreamStreamThe 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
sourceFilestringtargetPathstringfileStreamStreamcallbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual string EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
Invoke(string, string, Stream)
public virtual string Invoke(string sourceFile, string targetPath, Stream fileStream)