forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandEventArgs.cs
More file actions
35 lines (31 loc) · 976 Bytes
/
Copy pathCommandEventArgs.cs
File metadata and controls
35 lines (31 loc) · 976 Bytes
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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
namespace Microsoft.PowerShell.Commands.ShowCommandInternal
{
/// <summary>
/// Arguments for the event triggered when something happens at the cmdlet level.
/// </summary>
public class CommandEventArgs : EventArgs
{
/// <summary>
/// the command targeted by the event.
/// </summary>
private CommandViewModel command;
/// <summary>
/// Initializes a new instance of the CommandEventArgs class.
/// </summary>
/// <param name="command">The command targeted by the event.</param>
public CommandEventArgs(CommandViewModel command)
{
this.command = command;
}
/// <summary>
/// Gets the command targeted by the event.
/// </summary>
public CommandViewModel Command
{
get { return this.command; }
}
}
}