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; ////// [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
- DataGridColumnCollection.cs
- WorkflowView.cs
- SemanticResultKey.cs
- DynamicResourceExtension.cs
- EventsTab.cs
- XmlCollation.cs
- Int16Converter.cs
- CorrelationTokenTypeConvertor.cs
- XmlDocumentType.cs
- RuntimeCompatibilityAttribute.cs
- ConnectionStringSettings.cs
- ColumnHeader.cs
- QuaternionValueSerializer.cs
- FontEditor.cs
- printdlgexmarshaler.cs
- returneventsaver.cs
- GB18030Encoding.cs
- Logging.cs
- IPPacketInformation.cs
- ObjectDataSourceView.cs
- XmlSerializableServices.cs
- Wildcard.cs
- SafeLocalMemHandle.cs
- ProcessHostServerConfig.cs
- XmlUnspecifiedAttribute.cs
- XmlElementCollection.cs
- formatter.cs
- X509RecipientCertificateServiceElement.cs
- XmlBindingWorker.cs
- ToolStripRenderEventArgs.cs
- FormViewDeleteEventArgs.cs
- ListControl.cs
- FragmentQueryKB.cs
- ContainerFilterService.cs
- RewritingSimplifier.cs
- EmbeddedMailObjectsCollection.cs
- ImageField.cs
- MethodResolver.cs
- OneOfConst.cs
- TextEditorDragDrop.cs
- DescriptionAttribute.cs
- TextParentUndoUnit.cs
- ContentOperations.cs
- XmlWriterTraceListener.cs
- HostedNamedPipeTransportManager.cs
- ProvidePropertyAttribute.cs
- Switch.cs
- SpecularMaterial.cs
- FormatterConverter.cs
- FullTextBreakpoint.cs
- XmlBufferReader.cs
- CapiHashAlgorithm.cs
- CharKeyFrameCollection.cs
- CharUnicodeInfo.cs
- WebRequestModuleElement.cs
- ToolStripButton.cs
- ZipIOLocalFileHeader.cs
- ExceptionValidationRule.cs
- PartBasedPackageProperties.cs
- Matrix.cs
- Visual3D.cs
- BoundingRectTracker.cs
- CheckBoxField.cs
- NameObjectCollectionBase.cs
- ChameleonKey.cs
- RTLAwareMessageBox.cs
- ReflectionPermission.cs
- AdRotator.cs
- BitmapEffectDrawingContent.cs
- CompensateDesigner.cs
- CookieProtection.cs
- QilExpression.cs
- RemotingAttributes.cs
- BuildTopDownAttribute.cs
- Evaluator.cs
- RSAPKCS1SignatureFormatter.cs
- EventLevel.cs
- SessionPageStateSection.cs
- XmlChildNodes.cs
- MinimizableAttributeTypeConverter.cs
- NotifyIcon.cs
- WindowsTooltip.cs
- SiteMapSection.cs
- OdbcParameterCollection.cs
- WinEventHandler.cs
- RectangleGeometry.cs
- precedingquery.cs
- DataGridViewCellConverter.cs
- PassportAuthentication.cs
- CodeSnippetCompileUnit.cs
- OrCondition.cs
- DataObjectAttribute.cs
- __ConsoleStream.cs
- DbProviderServices.cs
- KeyGestureValueSerializer.cs
- DoubleLinkList.cs
- TypeResolver.cs
- XmlSignatureProperties.cs
- MasterPage.cs
- COM2FontConverter.cs