Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebControls / CommandEventArgs.cs / 1 / CommandEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class CommandEventArgs : EventArgs {
private string commandName;
private object argument;
///
/// Initializes a new instance of the class with another .
///
public CommandEventArgs(CommandEventArgs e) : this(e.CommandName, e.CommandArgument) {
}
///
/// Initializes a new instance of the class with the specified command name
/// and argument.
///
public CommandEventArgs(string commandName, object argument) {
this.commandName = commandName;
this.argument = argument;
}
///
/// Gets the name of the command. This property is read-only.
///
public string CommandName {
get {
return commandName;
}
}
///
/// Gets the argument for the command. This property is read-only.
///
public object CommandArgument {
get {
return argument;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class CommandEventArgs : EventArgs {
private string commandName;
private object argument;
///
/// Initializes a new instance of the class with another .
///
public CommandEventArgs(CommandEventArgs e) : this(e.CommandName, e.CommandArgument) {
}
///
/// Initializes a new instance of the class with the specified command name
/// and argument.
///
public CommandEventArgs(string commandName, object argument) {
this.commandName = commandName;
this.argument = argument;
}
///
/// Gets the name of the command. This property is read-only.
///
public string CommandName {
get {
return commandName;
}
}
///
/// Gets the argument for the command. This property is read-only.
///
public object CommandArgument {
get {
return argument;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExpressionCopier.cs
- CapacityStreamGeometryContext.cs
- FixedHighlight.cs
- ThreadAbortException.cs
- SmiMetaData.cs
- DataGridViewRowPostPaintEventArgs.cs
- serverconfig.cs
- SendMessageContent.cs
- EncodingStreamWrapper.cs
- NetworkInterface.cs
- Deserializer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ComplexType.cs
- HttpRuntimeSection.cs
- SafeSystemMetrics.cs
- ObjectConverter.cs
- DummyDataSource.cs
- CodeCastExpression.cs
- FormViewDeleteEventArgs.cs
- SizeConverter.cs
- QuaternionAnimation.cs
- XmlDocument.cs
- StringConverter.cs
- MenuItemCollection.cs
- CssStyleCollection.cs
- EmbeddedMailObject.cs
- HelpHtmlBuilder.cs
- ByteFacetDescriptionElement.cs
- ContentWrapperAttribute.cs
- XPathAxisIterator.cs
- _FtpControlStream.cs
- AspProxy.cs
- CustomErrorsSectionWrapper.cs
- Style.cs
- TextEffect.cs
- DefaultParameterValueAttribute.cs
- MetadataExchangeClient.cs
- RawUIStateInputReport.cs
- InteropAutomationProvider.cs
- GraphicsPath.cs
- LocationSectionRecord.cs
- OlePropertyStructs.cs
- MsdtcWrapper.cs
- PathParser.cs
- OpacityConverter.cs
- OdbcRowUpdatingEvent.cs
- ServerTooBusyException.cs
- SendingRequestEventArgs.cs
- __ComObject.cs
- KeyValueConfigurationElement.cs
- GridItemCollection.cs
- HtmlFormAdapter.cs
- CheckBoxBaseAdapter.cs
- ReleaseInstanceMode.cs
- AddInActivator.cs
- BuildProvider.cs
- sqlpipe.cs
- SamlAuthorizationDecisionClaimResource.cs
- WebRequestModulesSection.cs
- XmlToDatasetMap.cs
- DependencyPropertyKind.cs
- Message.cs
- mda.cs
- WebSysDescriptionAttribute.cs
- WebPartCloseVerb.cs
- MimeBasePart.cs
- DecimalAnimationUsingKeyFrames.cs
- ListInitExpression.cs
- ObjectDataSourceFilteringEventArgs.cs
- FtpWebRequest.cs
- Inflater.cs
- SharedPersonalizationStateInfo.cs
- ParentControlDesigner.cs
- SessionEndingEventArgs.cs
- DbConnectionStringCommon.cs
- UpdateException.cs
- RangeValuePatternIdentifiers.cs
- ExpressionTextBoxAutomationPeer.cs
- arabicshape.cs
- FontUnitConverter.cs
- UriExt.cs
- CompilerGeneratedAttribute.cs
- Equal.cs
- Overlapped.cs
- RemoteWebConfigurationHostStream.cs
- ResourceProviderFactory.cs
- FixedSOMGroup.cs
- MembershipValidatePasswordEventArgs.cs
- DefaultValueAttribute.cs
- HttpResponseHeader.cs
- ColorMatrix.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ToolStripPanelSelectionBehavior.cs
- TargetConverter.cs
- TaskResultSetter.cs
- TextClipboardData.cs
- WorkflowServiceBehavior.cs
- ExponentialEase.cs
- UntrustedRecipientException.cs
- XmlMtomWriter.cs