Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / IO / System / IO / RenamedEventArgs.cs / 1 / RenamedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; ////// public class RenamedEventArgs : FileSystemEventArgs { private string oldName; private string oldFullPath; ///Provides data for the ///event. /// public RenamedEventArgs(WatcherChangeTypes changeType, string directory, string name, string oldName) : base(changeType, directory, name) { // Ensure that the directory name ends with a "\" if (!directory.EndsWith("\\", StringComparison.Ordinal)) { directory = directory + "\\"; } this.oldName = oldName; this.oldFullPath = directory + oldName; } ////// Initializes a new instance of the ////// class. /// /// public string OldFullPath { get { new FileIOPermission(FileIOPermissionAccess.Read, Path.GetPathRoot(oldFullPath)).Demand(); return oldFullPath; } } ////// Gets /// the previous fully qualified path of the affected file or directory. /// ////// public string OldName { get { return oldName; } } } }/// Gets /// the old name of the affected file or directory. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlNotificationRequest.cs
- ServiceInfo.cs
- VarRemapper.cs
- WebPartZone.cs
- ListBindingConverter.cs
- ManipulationInertiaStartingEventArgs.cs
- DesignBindingPropertyDescriptor.cs
- designeractionlistschangedeventargs.cs
- categoryentry.cs
- CodeBlockBuilder.cs
- ProtocolsConfigurationHandler.cs
- ProviderMetadataCachedInformation.cs
- StructuralCache.cs
- InstanceView.cs
- SqlTransaction.cs
- EdmScalarPropertyAttribute.cs
- FileFormatException.cs
- XmlHierarchicalDataSourceView.cs
- StatusBarPanelClickEvent.cs
- Point3DKeyFrameCollection.cs
- SafeBitVector32.cs
- ClassHandlersStore.cs
- ProxyManager.cs
- FrameworkElementAutomationPeer.cs
- SelectionEditingBehavior.cs
- HtmlControlDesigner.cs
- Vector.cs
- SelfIssuedSamlTokenFactory.cs
- PropertyMapper.cs
- EdmFunction.cs
- Tool.cs
- TemplateInstanceAttribute.cs
- ControlCachePolicy.cs
- DataSysAttribute.cs
- VirtualPathUtility.cs
- MaskDesignerDialog.cs
- GatewayIPAddressInformationCollection.cs
- GeneralTransform2DTo3D.cs
- ConstructorArgumentAttribute.cs
- CloseCryptoHandleRequest.cs
- WaitForChangedResult.cs
- TextEditorCopyPaste.cs
- DefaultValueAttribute.cs
- shaperfactoryquerycachekey.cs
- CompilerLocalReference.cs
- COAUTHINFO.cs
- SqlInternalConnection.cs
- RequiredFieldValidator.cs
- Sql8ExpressionRewriter.cs
- SHA1Managed.cs
- SqlTriggerAttribute.cs
- Buffer.cs
- SqlMetaData.cs
- IdentityValidationException.cs
- DynamicPropertyHolder.cs
- Module.cs
- DetailsViewRow.cs
- SelectedDatesCollection.cs
- OdbcConnectionString.cs
- MexTcpBindingElement.cs
- SyndicationDeserializer.cs
- ExtenderProviderService.cs
- Item.cs
- DataSet.cs
- NullReferenceException.cs
- UserControlAutomationPeer.cs
- WeakReference.cs
- OdbcReferenceCollection.cs
- SmiRecordBuffer.cs
- CheckBoxPopupAdapter.cs
- XmlSchemaValidator.cs
- ResourceReferenceKeyNotFoundException.cs
- HttpProcessUtility.cs
- DataGridCell.cs
- InvalidWMPVersionException.cs
- HttpCapabilitiesSectionHandler.cs
- ExplicitDiscriminatorMap.cs
- TraceContextEventArgs.cs
- DataContractSerializerOperationGenerator.cs
- PathTooLongException.cs
- GlobalAllocSafeHandle.cs
- ping.cs
- CalendarItem.cs
- PixelFormat.cs
- FlowNode.cs
- ColorAnimationUsingKeyFrames.cs
- TransformGroup.cs
- XsltOutput.cs
- CompiledXpathExpr.cs
- SystemIcons.cs
- UriParserTemplates.cs
- UrlMappingsModule.cs
- DBAsyncResult.cs
- Function.cs
- WebServiceHandler.cs
- Crc32.cs
- MessageQueue.cs
- DataGridCell.cs
- ObjectStateEntry.cs
- HyperLinkStyle.cs