Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SynchronizedDispatch.cs
- ErrorCodes.cs
- ApplicationContext.cs
- CompositeFontInfo.cs
- Point.cs
- GraphicsState.cs
- ToolStripDropDownClosedEventArgs.cs
- HtmlInputFile.cs
- PositiveTimeSpanValidator.cs
- ProviderCommandInfoUtils.cs
- MenuItem.cs
- ResourceDisplayNameAttribute.cs
- OracleCommandBuilder.cs
- InternalSafeNativeMethods.cs
- URLString.cs
- PointLight.cs
- LabelAutomationPeer.cs
- StylusPointDescription.cs
- AmbientLight.cs
- WizardForm.cs
- AuthenticodeSignatureInformation.cs
- ArraySegment.cs
- basevalidator.cs
- XComponentModel.cs
- GuidConverter.cs
- ClassHandlersStore.cs
- _HeaderInfoTable.cs
- BaseValidator.cs
- HierarchicalDataTemplate.cs
- VirtualizingStackPanel.cs
- RecognizedAudio.cs
- ServiceDescriptions.cs
- _SSPISessionCache.cs
- IDictionary.cs
- QuadraticEase.cs
- FixedNode.cs
- CommunicationException.cs
- XmlSchemaSimpleTypeUnion.cs
- LifetimeServices.cs
- Not.cs
- EmptyEnumerator.cs
- SchemaImporter.cs
- DataGridViewRowConverter.cs
- WebEventTraceProvider.cs
- EventSchemaTraceListener.cs
- PingReply.cs
- DrawListViewSubItemEventArgs.cs
- XamlSerializerUtil.cs
- DrawingState.cs
- CharacterBufferReference.cs
- CheckPair.cs
- Mapping.cs
- SimpleHandlerFactory.cs
- ColumnMapCopier.cs
- MailSettingsSection.cs
- Int64Storage.cs
- BmpBitmapEncoder.cs
- ConfigurationPropertyAttribute.cs
- CodeDOMProvider.cs
- FileDialog_Vista.cs
- FloatUtil.cs
- Drawing.cs
- OdbcConnectionHandle.cs
- NativeMethods.cs
- ProviderIncompatibleException.cs
- ImageField.cs
- SoapIgnoreAttribute.cs
- BitmapEffectGeneralTransform.cs
- BitmapEffectGeneralTransform.cs
- SvcMapFileSerializer.cs
- UnsignedPublishLicense.cs
- FileNotFoundException.cs
- _ChunkParse.cs
- EntitySqlQueryCacheEntry.cs
- SqlDataSourceConfigureFilterForm.cs
- BlurEffect.cs
- ProcessInfo.cs
- StreamGeometryContext.cs
- DataGridHeaderBorder.cs
- Tracking.cs
- ComponentChangedEvent.cs
- SeparatorAutomationPeer.cs
- PropertyTabChangedEvent.cs
- ApplicationInfo.cs
- WebPartDisplayModeEventArgs.cs
- UnitySerializationHolder.cs
- DrawTreeNodeEventArgs.cs
- XamlPoint3DCollectionSerializer.cs
- CqlGenerator.cs
- TextRangeProviderWrapper.cs
- PasswordRecovery.cs
- FutureFactory.cs
- NestedContainer.cs
- FlowDecisionLabelFeature.cs
- PartialArray.cs
- LicenseException.cs
- MSG.cs
- Operand.cs
- SafeArrayTypeMismatchException.cs
- EntityDataSourceChangingEventArgs.cs