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
- PassportPrincipal.cs
- XmlObjectSerializer.cs
- IdentityElement.cs
- BindingManagerDataErrorEventArgs.cs
- EncoderExceptionFallback.cs
- XmlSchemaImporter.cs
- Assembly.cs
- ValidationResults.cs
- NetMsmqBinding.cs
- HandlerMappingMemo.cs
- SqlCharStream.cs
- ErrorTableItemStyle.cs
- SelectionList.cs
- MenuItemBindingCollection.cs
- SoapDocumentServiceAttribute.cs
- BindingSource.cs
- FtpRequestCacheValidator.cs
- WorkflowOperationAsyncResult.cs
- SystemFonts.cs
- DesignBindingEditor.cs
- SvcMapFile.cs
- BinaryWriter.cs
- MenuCommands.cs
- ValueSerializerAttribute.cs
- WebHttpBindingElement.cs
- XmlSubtreeReader.cs
- FileDialog_Vista_Interop.cs
- Rules.cs
- HashAlgorithm.cs
- XmlDataContract.cs
- recordstate.cs
- ConnectionPoint.cs
- DeobfuscatingStream.cs
- Control.cs
- QilUnary.cs
- baseaxisquery.cs
- ParameterCollection.cs
- StringUtil.cs
- ContentPosition.cs
- DuplexSecurityProtocolFactory.cs
- TextRangeEditLists.cs
- Int32KeyFrameCollection.cs
- FatalException.cs
- CheckBoxField.cs
- localization.cs
- ZoneButton.cs
- SmiRequestExecutor.cs
- ValueProviderWrapper.cs
- SubMenuStyleCollection.cs
- Int64Storage.cs
- HyperLinkStyle.cs
- IUnknownConstantAttribute.cs
- AddInDeploymentState.cs
- HashHelper.cs
- NullReferenceException.cs
- IdentifierCollection.cs
- DrawingCollection.cs
- DataGrid.cs
- HandleTable.cs
- TypeUsageBuilder.cs
- VectorValueSerializer.cs
- COM2ExtendedUITypeEditor.cs
- XLinq.cs
- QilReplaceVisitor.cs
- Message.cs
- DetailsViewUpdateEventArgs.cs
- _LoggingObject.cs
- XComponentModel.cs
- ByeMessage11.cs
- NavigatorInput.cs
- SetterBaseCollection.cs
- ConnectionManagementElementCollection.cs
- Event.cs
- DoubleAnimationUsingPath.cs
- StyleTypedPropertyAttribute.cs
- NativeMethods.cs
- MimeTypeMapper.cs
- DataGridViewColumnEventArgs.cs
- MenuItem.cs
- MatrixTransform.cs
- XmlSchemaAttributeGroup.cs
- TableProvider.cs
- Utils.cs
- BooleanToVisibilityConverter.cs
- ExtendedProtectionPolicyElement.cs
- PersistChildrenAttribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ReceiveSecurityHeader.cs
- SafeWaitHandle.cs
- XmlSchemaCollection.cs
- XPathNodeInfoAtom.cs
- WsiProfilesElementCollection.cs
- FontFamily.cs
- MultiAsyncResult.cs
- HttpServerVarsCollection.cs
- Message.cs
- CreatingCookieEventArgs.cs
- StreamWriter.cs
- OletxTransactionFormatter.cs
- DataGridPageChangedEventArgs.cs