Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / Design / ComponentRenameEvent.cs / 1 / ComponentRenameEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel.Design {
using Microsoft.Win32;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class ComponentRenameEventArgs : EventArgs {
private object component;
private string oldName;
private string newName;
///
///
/// Gets or sets the component that is being renamed.
///
///
public object Component {
get {
return component;
}
}
///
///
/// Gets or
/// sets the name of the component before the rename.
///
///
public virtual string OldName {
get {
return oldName;
}
}
///
///
/// Gets or
/// sets the current name of the component.
///
///
public virtual string NewName {
get {
return newName;
}
}
///
///
/// Initializes a new instance of the
/// class.
///
///
public ComponentRenameEventArgs(object component, string oldName, string newName) {
this.oldName = oldName;
this.newName = newName;
this.component = component;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel.Design {
using Microsoft.Win32;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class ComponentRenameEventArgs : EventArgs {
private object component;
private string oldName;
private string newName;
///
///
/// Gets or sets the component that is being renamed.
///
///
public object Component {
get {
return component;
}
}
///
///
/// Gets or
/// sets the name of the component before the rename.
///
///
public virtual string OldName {
get {
return oldName;
}
}
///
///
/// Gets or
/// sets the current name of the component.
///
///
public virtual string NewName {
get {
return newName;
}
}
///
///
/// Initializes a new instance of the
/// class.
///
///
public ComponentRenameEventArgs(object component, string oldName, string newName) {
this.oldName = oldName;
this.newName = newName;
this.component = component;
}
}
}
// 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
- IssuanceLicense.cs
- KernelTypeValidation.cs
- KeysConverter.cs
- QueueException.cs
- TaskHelper.cs
- DoubleLink.cs
- PasswordTextNavigator.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- PasswordBoxAutomationPeer.cs
- CrossAppDomainChannel.cs
- DefaultIfEmptyQueryOperator.cs
- ToolStripHighContrastRenderer.cs
- HttpModuleActionCollection.cs
- MetadataException.cs
- SQLBinaryStorage.cs
- DatagridviewDisplayedBandsData.cs
- PenThreadPool.cs
- connectionpool.cs
- Light.cs
- StringUtil.cs
- SmtpDigestAuthenticationModule.cs
- ArglessEventHandlerProxy.cs
- PerformanceCounterPermission.cs
- CultureInfo.cs
- SharedStatics.cs
- GradientBrush.cs
- RuntimeComponentFilter.cs
- CreateUserWizardStep.cs
- TextTrailingCharacterEllipsis.cs
- EnvelopedPkcs7.cs
- CompilationLock.cs
- _TLSstream.cs
- COM2ComponentEditor.cs
- GridViewCellAutomationPeer.cs
- UnconditionalPolicy.cs
- TemplatePagerField.cs
- MsmqIntegrationSecurityMode.cs
- SQLRoleProvider.cs
- TransformerInfoCollection.cs
- DelegatedStream.cs
- AuthorizationBehavior.cs
- ExtensibleClassFactory.cs
- RadioButtonList.cs
- XmlReaderSettings.cs
- DynamicScriptObject.cs
- Graph.cs
- Keyboard.cs
- RemoteX509Token.cs
- ControlPaint.cs
- XmlILConstructAnalyzer.cs
- SmiEventSink.cs
- ToolStripItemCollection.cs
- ProcessModelInfo.cs
- Axis.cs
- RelationshipEndCollection.cs
- DictionaryKeyPropertyAttribute.cs
- CreateUserWizardStep.cs
- PackUriHelper.cs
- WindowInteractionStateTracker.cs
- ContentPosition.cs
- DataSourceViewSchemaConverter.cs
- PopOutPanel.cs
- LoginNameDesigner.cs
- Logging.cs
- DataGridViewButtonCell.cs
- HttpCachePolicy.cs
- InfoCardMetadataExchangeClient.cs
- ContextQuery.cs
- MemberPath.cs
- ItemType.cs
- DataTableMappingCollection.cs
- Vector3D.cs
- XmlLoader.cs
- AssemblyContextControlItem.cs
- TextPatternIdentifiers.cs
- WebEncodingValidatorAttribute.cs
- ScrollChrome.cs
- MetabaseServerConfig.cs
- TextFormatterHost.cs
- TraceListener.cs
- DefaultEventAttribute.cs
- SwitchLevelAttribute.cs
- TagMapInfo.cs
- OutputCacheSettings.cs
- SocketPermission.cs
- SpeechUI.cs
- DrawListViewColumnHeaderEventArgs.cs
- AdornerHitTestResult.cs
- UndoManager.cs
- DesignerLabelAdapter.cs
- wmiprovider.cs
- DataConnectionHelper.cs
- WebBrowserDesigner.cs
- TrackingMemoryStream.cs
- BindingBase.cs
- WindowsUpDown.cs
- StreamInfo.cs
- CommandID.cs
- SevenBitStream.cs
- InvokeMethodActivityDesigner.cs