コード例 #1
0
 /// <summary>
 /// Gets the <see cref="FileAttributes"/> of the directory or file.
 /// </summary>
 /// <param name="info">A directory or file. </param>
 /// <param name="attributes">New attributes to set.</param>
 /// <returns>The <see cref="FileAttributes"/> of the directory or file.</returns>
 public static void SetAttributes(QuickIOPathInfo info, FileAttributes attributes)
 {
     Contract.Requires(info != null);
     InternalQuickIO.SetAttributes(info.FullNameUnc, attributes);
 }
コード例 #2
0
ファイル: QuickIO.cs プロジェクト: nagyist/QuickIO
 /// <summary>
 /// Gets the <see cref="FileAttributes"/> of the directory or file.
 /// </summary>
 /// <param name="path">The path to the directory or file. </param>
 /// <param name="attributes">New attributes to set.</param>
 /// <returns>The <see cref="FileAttributes"/> of the directory or file.</returns>
 public static void SetAttributes(string path, FileAttributes attributes)
 {
     Contract.Requires(!String.IsNullOrWhiteSpace(path));
     InternalQuickIO.SetAttributes(path, attributes);
 }
コード例 #3
0
 /// <summary>
 /// Gets the <see cref="FileAttributes"/> of the directory or file.
 /// </summary>
 /// <param name="path">The path to the directory or file. </param>
 /// <param name="attributes">New attributes to set.</param>
 /// <returns>The <see cref="FileAttributes"/> of the directory or file.</returns>
 public static FileAttributes SetAttributes(string path, FileAttributes attributes)
 {
     return(InternalQuickIO.SetAttributes(path, attributes));
 }