CommandItem Constructor (String, ICommand, ImageSource, Object)
Namespace: Microsoft.TeamFoundation.Controls.WPF
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
Public Sub New ( _
title As String, _
command As ICommand, _
icon As ImageSource, _
param As Object _
)
public CommandItem(
string title,
ICommand command,
ImageSource icon,
Object param
)
public:
CommandItem(
String^ title,
ICommand^ command,
ImageSource^ icon,
Object^ param
)
new :
title:string *
command:ICommand *
icon:ImageSource *
param:Object -> CommandItem
public function CommandItem(
title : String,
command : ICommand,
icon : ImageSource,
param : Object
)
Parameters
- title
Type: System.String
- command
Type: System.Windows.Input.ICommand
- icon
Type: System.Windows.Media.ImageSource
- param
Type: System.Object
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.