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
- TreeNodeBindingCollection.cs
- DataControlLinkButton.cs
- SchemaTableOptionalColumn.cs
- RelatedView.cs
- XmlDocumentSurrogate.cs
- Script.cs
- SectionInformation.cs
- HostingPreferredMapPath.cs
- DebugController.cs
- filewebresponse.cs
- LoginName.cs
- Clipboard.cs
- HostingEnvironment.cs
- XmlIlGenerator.cs
- ValidationRule.cs
- WindowsGraphics2.cs
- EdgeModeValidation.cs
- ColumnHeaderConverter.cs
- autovalidator.cs
- ProjectionCamera.cs
- CollectionViewSource.cs
- ToolBarButtonClickEvent.cs
- Trace.cs
- MatrixTransform.cs
- LinkDescriptor.cs
- CheckPair.cs
- PixelFormatConverter.cs
- StreamReader.cs
- HandlerBase.cs
- MenuEventArgs.cs
- HintTextMaxWidthConverter.cs
- HttpCookiesSection.cs
- ColorTransformHelper.cs
- Wildcard.cs
- dbenumerator.cs
- LogLogRecord.cs
- XmlEventCache.cs
- Brush.cs
- ForAllOperator.cs
- StylusSystemGestureEventArgs.cs
- AppDomainFactory.cs
- TreeViewItemAutomationPeer.cs
- GridViewColumnCollection.cs
- TextTreeExtractElementUndoUnit.cs
- Package.cs
- SurrogateSelector.cs
- MaskInputRejectedEventArgs.cs
- ModelItemExtensions.cs
- Menu.cs
- PropertyValueUIItem.cs
- SpStreamWrapper.cs
- ParameterCollection.cs
- UnauthorizedWebPart.cs
- TextEditorSelection.cs
- IEnumerable.cs
- TreeNodeCollection.cs
- HasCopySemanticsAttribute.cs
- ActivityDesignerLayoutSerializers.cs
- ControlBuilder.cs
- CodeExporter.cs
- CookielessHelper.cs
- DateTimeFormat.cs
- Instrumentation.cs
- PolicyLevel.cs
- TypeConverterHelper.cs
- Internal.cs
- DeferredSelectedIndexReference.cs
- KoreanCalendar.cs
- PageThemeBuildProvider.cs
- HttpRawResponse.cs
- StorageMappingItemLoader.cs
- ClientSettings.cs
- WindowVisualStateTracker.cs
- LineGeometry.cs
- Lookup.cs
- CoTaskMemHandle.cs
- SafeCryptoHandles.cs
- ObjectItemCachedAssemblyLoader.cs
- Events.cs
- GenericPrincipal.cs
- LocatorPart.cs
- Root.cs
- ActiveXHost.cs
- GeometryHitTestParameters.cs
- TimeSpanStorage.cs
- ServiceManagerHandle.cs
- PathFigureCollectionConverter.cs
- XmlDataSourceNodeDescriptor.cs
- SoapParser.cs
- compensatingcollection.cs
- WindowInteropHelper.cs
- DistinctQueryOperator.cs
- OuterGlowBitmapEffect.cs
- ValidationSummary.cs
- MouseOverProperty.cs
- LinqDataSourceDeleteEventArgs.cs
- ThreadSafeList.cs
- Helper.cs
- QuadraticBezierSegment.cs
- RegionIterator.cs