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
- StrongNamePublicKeyBlob.cs
- Predicate.cs
- IProvider.cs
- BigInt.cs
- WinFormsSpinner.cs
- FormViewDeleteEventArgs.cs
- ExternalException.cs
- XmlParserContext.cs
- DbParameterCollection.cs
- DataError.cs
- _ProxyRegBlob.cs
- PrinterResolution.cs
- KnownAssembliesSet.cs
- ClientCredentials.cs
- AnimationException.cs
- IntegrationExceptionEventArgs.cs
- BindingWorker.cs
- SafeNativeMethods.cs
- RoutedEventHandlerInfo.cs
- ClickablePoint.cs
- SoundPlayerAction.cs
- IntSecurity.cs
- DrawListViewSubItemEventArgs.cs
- AxHost.cs
- BitmapEffectrendercontext.cs
- FontUnit.cs
- BrowserDefinitionCollection.cs
- COM2TypeInfoProcessor.cs
- StructuralType.cs
- FrameAutomationPeer.cs
- CachedPathData.cs
- GrammarBuilder.cs
- SyndicationContent.cs
- XmlLanguageConverter.cs
- Pens.cs
- StringPropertyBuilder.cs
- ClrPerspective.cs
- WebPartDisplayMode.cs
- SystemIcmpV6Statistics.cs
- TraceEventCache.cs
- CodeArrayCreateExpression.cs
- PlainXmlWriter.cs
- ProxyManager.cs
- QueryOptionExpression.cs
- MinimizableAttributeTypeConverter.cs
- Rule.cs
- LineServices.cs
- MouseCaptureWithinProperty.cs
- ChangesetResponse.cs
- InvalidOperationException.cs
- ColorAnimationUsingKeyFrames.cs
- DocumentEventArgs.cs
- ProxyAttribute.cs
- _SpnDictionary.cs
- XmlTypeAttribute.cs
- BrowsableAttribute.cs
- Point3DCollectionConverter.cs
- CurrencyWrapper.cs
- AuthenticationService.cs
- FormsAuthenticationTicket.cs
- FixedTextPointer.cs
- SQLDecimal.cs
- Ticks.cs
- XhtmlMobileTextWriter.cs
- EditorPart.cs
- MonthChangedEventArgs.cs
- Blend.cs
- HtmlCommandAdapter.cs
- AttributeProviderAttribute.cs
- XmlExtensionFunction.cs
- XmlTextReaderImplHelpers.cs
- ArraySegment.cs
- SortedDictionary.cs
- SqlClientFactory.cs
- WindowManager.cs
- PointConverter.cs
- DiagnosticTrace.cs
- UpdatePanel.cs
- DomNameTable.cs
- BooleanStorage.cs
- ZipIOBlockManager.cs
- Matrix3DStack.cs
- PerformanceCounterTraceRecord.cs
- SafeLibraryHandle.cs
- TransformerInfoCollection.cs
- TableAutomationPeer.cs
- MethodAccessException.cs
- InheritanceRules.cs
- xdrvalidator.cs
- UnitySerializationHolder.cs
- Slider.cs
- XmlSerializerSection.cs
- Button.cs
- XmlAutoDetectWriter.cs
- SmiConnection.cs
- AuthorizationSection.cs
- SecureUICommand.cs
- SqlParameterizer.cs
- ProviderUtil.cs
- RawKeyboardInputReport.cs