Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / ComponentRenameEvent.cs / 1305376 / 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; ////// [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; ///Provides data for the ///event. /// public object Component { get { return component; } } ////// Gets or sets the component that is being renamed. /// ////// public virtual string OldName { get { return oldName; } } ////// Gets or /// sets the name of the component before the rename. /// ////// public virtual string NewName { get { return newName; } } ////// Gets or /// sets the current name of the component. /// ////// 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. //------------------------------------------------------------------------------ ///// Initializes a new instance of the ////// class. /// // 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; ////// [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; ///Provides data for the ///event. /// public object Component { get { return component; } } ////// Gets or sets the component that is being renamed. /// ////// public virtual string OldName { get { return oldName; } } ////// Gets or /// sets the name of the component before the rename. /// ////// public virtual string NewName { get { return newName; } } ////// Gets or /// sets the current name of the component. /// ////// 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./// Initializes a new instance of the ////// class. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Triangle.cs
- ListViewCommandEventArgs.cs
- SQLRoleProvider.cs
- Math.cs
- DataViewSetting.cs
- DbConnectionPoolGroupProviderInfo.cs
- DependencyObjectValidator.cs
- ZipFileInfoCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- NopReturnReader.cs
- FormsAuthenticationModule.cs
- ObjectPersistData.cs
- _IPv4Address.cs
- XmlObjectSerializerReadContext.cs
- CriticalExceptions.cs
- DataShape.cs
- _SafeNetHandles.cs
- TextMessageEncoder.cs
- CompleteWizardStep.cs
- StoryFragments.cs
- UriSection.cs
- Activity.cs
- InvalidateEvent.cs
- DocumentGrid.cs
- ManualResetEvent.cs
- Region.cs
- GeneralTransformGroup.cs
- _IPv6Address.cs
- DataGridViewColumnCollectionEditor.cs
- GeometryConverter.cs
- MostlySingletonList.cs
- ModelUIElement3D.cs
- WorkflowClientDeliverMessageWrapper.cs
- CroppedBitmap.cs
- EntityAdapter.cs
- WebServiceHandlerFactory.cs
- SocketAddress.cs
- ApplicationManager.cs
- RealizationDrawingContextWalker.cs
- ServerValidateEventArgs.cs
- DropAnimation.xaml.cs
- WorkflowMarkupSerializationException.cs
- MetadataSource.cs
- StructuredTypeEmitter.cs
- sqlser.cs
- PropertyValue.cs
- TypeBrowser.xaml.cs
- PageSettings.cs
- CustomSignedXml.cs
- EntityStoreSchemaFilterEntry.cs
- ChtmlTextWriter.cs
- SamlConditions.cs
- ComboBoxHelper.cs
- XslTransform.cs
- StylusButtonEventArgs.cs
- UiaCoreTypesApi.cs
- SplitterEvent.cs
- XmlSchemaAppInfo.cs
- ContentPlaceHolder.cs
- XPathSingletonIterator.cs
- Geometry3D.cs
- StringInfo.cs
- TextEditorTables.cs
- GifBitmapEncoder.cs
- MessageQueuePermissionAttribute.cs
- HttpServerUtilityWrapper.cs
- HttpClientCertificate.cs
- InnerItemCollectionView.cs
- CodeIdentifiers.cs
- CodeCompiler.cs
- EventTrigger.cs
- RelatedEnd.cs
- DirectionalLight.cs
- _Events.cs
- SiteMapDataSource.cs
- ToolBarPanel.cs
- DataGridViewRowCollection.cs
- CapabilitiesRule.cs
- DocumentPageTextView.cs
- InteropBitmapSource.cs
- TransformValueSerializer.cs
- UnsafeNativeMethods.cs
- ResolveNameEventArgs.cs
- DynamicValidator.cs
- WindowsSlider.cs
- DatasetMethodGenerator.cs
- ObjectTag.cs
- XmlAttributeHolder.cs
- PropertyChangedEventManager.cs
- LinkTarget.cs
- UpdatePanel.cs
- UIServiceHelper.cs
- InputDevice.cs
- CodeTypeDeclarationCollection.cs
- UnknownBitmapDecoder.cs
- DataServiceRequest.cs
- ScrollProperties.cs
- TableAdapterManagerGenerator.cs
- ElementUtil.cs
- TypedReference.cs