Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / RenamedEventArgs.cs / 1305376 / RenamedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; using System.Runtime.Versioning; ////// 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 { [ResourceExposure(ResourceScope.Machine)] [ResourceConsumption(ResourceScope.Machine)] 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// 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
- HasCopySemanticsAttribute.cs
- XPathAncestorIterator.cs
- ExtensionFile.cs
- WeakEventManager.cs
- DataGridPageChangedEventArgs.cs
- ConfigXmlComment.cs
- PropertiesTab.cs
- FileChangesMonitor.cs
- ThreadStateException.cs
- SyndicationLink.cs
- Control.cs
- ServiceModelEnumValidator.cs
- Column.cs
- ValueConversionAttribute.cs
- WinInetCache.cs
- HttpHandlersSection.cs
- FrameworkObject.cs
- Mouse.cs
- DashStyles.cs
- TextWriter.cs
- Int32CAMarshaler.cs
- FileDialog_Vista_Interop.cs
- Size.cs
- Add.cs
- DoubleLinkList.cs
- ReflectTypeDescriptionProvider.cs
- RadioButtonAutomationPeer.cs
- StandardCommands.cs
- DefaultBindingPropertyAttribute.cs
- ListViewItemMouseHoverEvent.cs
- UrlMappingsModule.cs
- GradientBrush.cs
- MD5Cng.cs
- InspectionWorker.cs
- TransformValueSerializer.cs
- ToolStripContainerActionList.cs
- SerializationUtilities.cs
- HyperlinkAutomationPeer.cs
- EncoderExceptionFallback.cs
- APCustomTypeDescriptor.cs
- DelegatingChannelListener.cs
- QuaternionAnimation.cs
- CalendarAutoFormatDialog.cs
- CryptoStream.cs
- ProfileSettingsCollection.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- Compensate.cs
- SwitchAttribute.cs
- ScriptModule.cs
- DataServiceEntityAttribute.cs
- DataIdProcessor.cs
- AccessText.cs
- Variable.cs
- BlockUIContainer.cs
- ComboBoxAutomationPeer.cs
- _ProxyChain.cs
- DESCryptoServiceProvider.cs
- Parsers.cs
- ClientSideQueueItem.cs
- SoapEnvelopeProcessingElement.cs
- ImageSourceValueSerializer.cs
- CompositeScriptReferenceEventArgs.cs
- ModulesEntry.cs
- TextStore.cs
- BaseHashHelper.cs
- XsdBuildProvider.cs
- Missing.cs
- BoundField.cs
- ScriptReference.cs
- UnwrappedTypesXmlSerializerManager.cs
- MimeParameters.cs
- DeferredTextReference.cs
- InternalPermissions.cs
- User.cs
- SerializerProvider.cs
- CalendarDayButton.cs
- AssemblyCache.cs
- IPCCacheManager.cs
- SafeArrayRankMismatchException.cs
- _WinHttpWebProxyDataBuilder.cs
- StreamResourceInfo.cs
- DecodeHelper.cs
- DateTimeConstantAttribute.cs
- MeasureItemEvent.cs
- DefaultBinder.cs
- DrawingAttributes.cs
- VirtualDirectoryMapping.cs
- OdbcTransaction.cs
- CookielessHelper.cs
- PermissionAttributes.cs
- RegistryPermission.cs
- TwoPhaseCommit.cs
- XhtmlConformanceSection.cs
- OutputScopeManager.cs
- ValueOfAction.cs
- ParameterToken.cs
- RequestCacheManager.cs
- CanonicalXml.cs
- SqlXmlStorage.cs
- DownloadProgressEventArgs.cs