Code:
/ FX-1434 / FX-1434 / 1.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
- TwoPhaseCommit.cs
- DBDataPermissionAttribute.cs
- DynamicRendererThreadManager.cs
- HtmlTableCell.cs
- AlgoModule.cs
- InvalidComObjectException.cs
- ConvertEvent.cs
- StringKeyFrameCollection.cs
- BindableAttribute.cs
- TargetFrameworkUtil.cs
- ContentPlaceHolderDesigner.cs
- DataGridViewLinkColumn.cs
- ExpandableObjectConverter.cs
- XmlSchemaComplexContentRestriction.cs
- ConsoleKeyInfo.cs
- InsufficientMemoryException.cs
- Button.cs
- DBCommand.cs
- SoapElementAttribute.cs
- Point3DCollectionValueSerializer.cs
- AccessText.cs
- GridViewColumn.cs
- Activator.cs
- EventKeyword.cs
- OSEnvironmentHelper.cs
- RestHandler.cs
- AxHost.cs
- FederatedMessageSecurityOverHttpElement.cs
- XsdCachingReader.cs
- ToolstripProfessionalRenderer.cs
- BamlMapTable.cs
- DeferredSelectedIndexReference.cs
- UndoEngine.cs
- CodeExporter.cs
- ADRoleFactory.cs
- RegisteredExpandoAttribute.cs
- AssemblyResourceLoader.cs
- ContentOperations.cs
- DocumentPageViewAutomationPeer.cs
- XsltOutput.cs
- CompilationRelaxations.cs
- DataSourceView.cs
- DrawingServices.cs
- BoundingRectTracker.cs
- MasterPageCodeDomTreeGenerator.cs
- TextEditorContextMenu.cs
- MenuItemStyleCollection.cs
- DeviceFilterDictionary.cs
- SystemNetHelpers.cs
- Fault.cs
- QueryCursorEventArgs.cs
- ConfigurationException.cs
- DataTableExtensions.cs
- PeerNode.cs
- TaskFormBase.cs
- VisualTreeHelper.cs
- unsafenativemethodstextservices.cs
- EntitySqlQueryCacheEntry.cs
- xsdvalidator.cs
- ChannelServices.cs
- EntryPointNotFoundException.cs
- TypeCodeDomSerializer.cs
- WebPartTransformerCollection.cs
- HttpResponseHeader.cs
- AnimationStorage.cs
- MessageQueueConverter.cs
- XmlSignatureManifest.cs
- BufferedGraphicsContext.cs
- CatalogZone.cs
- XmlSiteMapProvider.cs
- Listbox.cs
- ClientBuildManagerCallback.cs
- OracleConnectionString.cs
- CalendarDateRangeChangingEventArgs.cs
- AssemblyBuilderData.cs
- ItemMap.cs
- LoginUtil.cs
- exports.cs
- AnimatedTypeHelpers.cs
- SessionStateContainer.cs
- QilPatternVisitor.cs
- TransactionChannelFaultConverter.cs
- SslStream.cs
- WindowInteropHelper.cs
- SqlDependencyUtils.cs
- SqlParameter.cs
- HMACSHA512.cs
- SafeFileMappingHandle.cs
- DynamicArgumentDialog.cs
- InvalidComObjectException.cs
- TypographyProperties.cs
- HtmlWindowCollection.cs
- UnmanagedMemoryStream.cs
- UnionExpr.cs
- UserNameSecurityToken.cs
- HandlerFactoryCache.cs
- HtmlButton.cs
- OleDbConnectionInternal.cs
- MouseGestureConverter.cs
- XmlSchemaSimpleTypeList.cs