forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIAsyncProgress.cs
More file actions
45 lines (40 loc) · 1.51 KB
/
Copy pathIAsyncProgress.cs
File metadata and controls
45 lines (40 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//-----------------------------------------------------------------------
// <copyright file="IAsyncProgress.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Microsoft.Management.UI.Internal
{
#region Using Directives
using System;
using System.Diagnostics.CodeAnalysis;
using System.Collections.Generic;
using System.Text;
using System.Windows;
#endregion
/// <summary>
/// An interface designed to provide updates about an asynchronous operation.
/// If the UI is data bound to the properties in this interface then INotifyPropertyChanged should
/// be implemented by the type implementing IAsyncProgress so the UI can get notification of the properties
/// being changed.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.MSInternal", "CA903:InternalNamespaceShouldNotContainPublicTypes")]
public interface IAsyncProgress
{
/// <summary>
/// Gets a value indicating whether the async operation is currently running.
/// </summary>
bool OperationInProgress
{
get;
}
/// <summary>
/// Gets a the error for the async operation. This field is only valid if
/// OperationInProgress is false. null indicates there was no error.
/// </summary>
Exception OperationError
{
get;
}
}
}