/// <summary>
 /// Initializes a new instance of the <see cref="FileSystemOperationResult" /> class.
 /// </summary>
 /// <param name="code">The result code.</param>
 public FileSystemOperationResult(FileSystemOperationResultCode code)
 {
     this.Code = code;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileSystemOperationException" /> class.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="path">The path where the exception occurred.</param>
 /// <param name="code">The result code of the exception.</param>
 public FileSystemOperationException(String message, Uri path, FileSystemOperationResultCode code)
     : base(message)
 {
     Path = path;
     Code = code;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FileSystemOperationException" /> class.
 /// </summary>
 /// <param name="message">The error message that explains the reason for the exception.</param>
 /// <param name="path">The path where the exception occurred.</param>
 /// <param name="code">The result code of the exception.</param>
 /// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
 public FileSystemOperationException(String message, Uri path, FileSystemOperationResultCode code, Exception innerException)
     : base(message, innerException)
 {
     this.Path = path;
     this.Code = code;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileListingOperationResult" /> class.
 /// </summary>
 /// <param name="code">The result code of the operation.</param>
 /// <param name="entries">The list of file system entries.</param>
 public FileListingOperationResult(FileSystemOperationResultCode code, IList <FileSystemEntry> entries)
     : base(code)
 {
     Entries = entries;
 }