本文整理汇总了C#中FileUpdateMode类的典型用法代码示例。如果您正苦于以下问题:C# FileUpdateMode类的具体用法?C# FileUpdateMode怎么用?C# FileUpdateMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FileUpdateMode类属于命名空间,在下文中一共展示了FileUpdateMode类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DiskArchiveStorage
public DiskArchiveStorage(ZipFile file, FileUpdateMode updateMode) : base(updateMode)
{
if (file.Name == null)
{
throw new ZipException("Cant handle non file archives");
}
this.fileName_ = file.Name;
}
示例2: MemoryArchiveStorage
/// <summary>
/// Initializes a new instance of the <see cref="MemoryArchiveStorage"/> class.
/// </summary>
/// <param name="updateMode">The <see cref="FileUpdateMode"/> to use</param>
/// <remarks>This constructor is for testing as memory streams dont really require safe mode.</remarks>
public MemoryArchiveStorage(FileUpdateMode updateMode)
: base(updateMode)
{
}
示例3: BaseArchiveStorage
/// <summary>
/// Initializes a new instance of the <see cref="BaseArchiveStorage"/> class.
/// </summary>
/// <param name="updateMode">The update mode.</param>
protected BaseArchiveStorage(FileUpdateMode updateMode)
{
updateMode_ = updateMode;
}
示例4: BaseArchiveStorage
/// <summary>
/// Initializes a new instance of the <see cref="BaseArchiveStorage"/> class.
/// </summary>
/// <param name="updateMode">The update mode.</param>
public BaseArchiveStorage(FileUpdateMode updateMode)
{
updateMode_ = updateMode;
}
示例5: BaseArchiveStorage
/// <summary>
/// Initializes a new instance of the <see cref="BaseArchiveStorage"/> class.
/// </summary>
/// <param name="updateMode">The update mode.</param>
internal BaseArchiveStorage(FileUpdateMode updateMode)
{
updateMode_ = updateMode;
}
示例6: DiskArchiveStorage
/// <summary>
/// Initializes a new instance of the <see cref="DiskArchiveStorage"/> class.
/// </summary>
/// <param name="file">The file.</param>
/// <param name="updateMode">The update mode.</param>
public DiskArchiveStorage(ZipFile file, FileUpdateMode updateMode)
: base(updateMode)
{
fileName_ = file.Name;
}