ZipArchive.CreateEntryFromFile Method (String, String, CompressionLevel)
Namespace: Microsoft.TeamFoundation.Framework.Server.Alm
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function CreateEntryFromFile ( _
sourceFileName As String, _
entryName As String, _
compressionLevel As CompressionLevel _
) As ZipArchiveEntry
public ZipArchiveEntry CreateEntryFromFile(
string sourceFileName,
string entryName,
CompressionLevel compressionLevel
)
public:
ZipArchiveEntry^ CreateEntryFromFile(
String^ sourceFileName,
String^ entryName,
CompressionLevel compressionLevel
)
member CreateEntryFromFile :
sourceFileName:string *
entryName:string *
compressionLevel:CompressionLevel -> ZipArchiveEntry
public function CreateEntryFromFile(
sourceFileName : String,
entryName : String,
compressionLevel : CompressionLevel
) : ZipArchiveEntry
Parameters
- sourceFileName
Type: System.String
- entryName
Type: System.String
- compressionLevel
Type: Microsoft.TeamFoundation.Framework.Server.Alm.CompressionLevel
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.Alm.ZipArchiveEntry
.NET Framework Security
- 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.