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
- XsltArgumentList.cs
- RuntimeConfig.cs
- Publisher.cs
- CalendarAutomationPeer.cs
- DataGridViewDesigner.cs
- WebBrowser.cs
- CommonDialog.cs
- CollectionChangeEventArgs.cs
- MenuAdapter.cs
- LabelEditEvent.cs
- DataContractJsonSerializer.cs
- RecordConverter.cs
- _TransmitFileOverlappedAsyncResult.cs
- ObjectDataSourceChooseMethodsPanel.cs
- DbReferenceCollection.cs
- SecurityHelper.cs
- ConvertEvent.cs
- ContentElementCollection.cs
- ConnectionStringsExpressionBuilder.cs
- Calendar.cs
- TableRowCollection.cs
- HtmlInputCheckBox.cs
- _SslState.cs
- LocatorPartList.cs
- StateDesigner.LayoutSelectionGlyph.cs
- DbConnectionPoolGroupProviderInfo.cs
- WindowsFormsLinkLabel.cs
- MemberAccessException.cs
- GlyphingCache.cs
- ReachNamespaceInfo.cs
- ColumnCollection.cs
- SHA1CryptoServiceProvider.cs
- SerializationObjectManager.cs
- ValidationSummary.cs
- SinglePhaseEnlistment.cs
- GacUtil.cs
- ChameleonKey.cs
- MultiSelector.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Identifier.cs
- MatrixUtil.cs
- shaperfactoryquerycacheentry.cs
- SqlDataSourceView.cs
- Emitter.cs
- IdentitySection.cs
- Converter.cs
- DataObjectFieldAttribute.cs
- BasicHttpBindingElement.cs
- PieceDirectory.cs
- Expander.cs
- Point.cs
- ProxyHwnd.cs
- RadioButtonRenderer.cs
- ExportException.cs
- WriteableBitmap.cs
- CompilationLock.cs
- AttributeTable.cs
- Mutex.cs
- DLinqTableProvider.cs
- TaskbarItemInfo.cs
- XsdBuilder.cs
- DefaultSettingsSection.cs
- WebRequestModulesSection.cs
- ResXResourceReader.cs
- XPathNodeIterator.cs
- precedingsibling.cs
- ServiceX509SecurityTokenProvider.cs
- PageCatalogPart.cs
- _DomainName.cs
- DataGridViewLinkCell.cs
- DiscoveryDocument.cs
- KeyPullup.cs
- CallbackValidatorAttribute.cs
- ShaderEffect.cs
- PlanCompiler.cs
- KeyMatchBuilder.cs
- CursorConverter.cs
- TextEffect.cs
- SpeakCompletedEventArgs.cs
- XslException.cs
- DataBinder.cs
- BuildManager.cs
- DataReaderContainer.cs
- PagerSettings.cs
- Security.cs
- RootBuilder.cs
- TreeIterator.cs
- Token.cs
- JpegBitmapEncoder.cs
- DeclarativeCatalogPart.cs
- SqlInfoMessageEvent.cs
- FormsAuthenticationEventArgs.cs
- OdbcPermission.cs
- InputBinder.cs
- ByteRangeDownloader.cs
- FamilyCollection.cs
- LastQueryOperator.cs
- AsyncCompletedEventArgs.cs
- AnimationException.cs
- ObjectDisposedException.cs