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
- WebPartEventArgs.cs
- PropertyTabAttribute.cs
- DateTime.cs
- ParameterModifier.cs
- SerialPinChanges.cs
- XmlLinkedNode.cs
- SmtpNtlmAuthenticationModule.cs
- Section.cs
- EmptyCollection.cs
- SoapEnvelopeProcessingElement.cs
- XmlSerializerFactory.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- PersistenceTypeAttribute.cs
- XmlCountingReader.cs
- SecurityUniqueId.cs
- ContainerControl.cs
- RightNameExpirationInfoPair.cs
- DataExchangeServiceBinder.cs
- ResourcesBuildProvider.cs
- ProcessThreadCollection.cs
- HttpRawResponse.cs
- OutputCacheSettings.cs
- ScrollItemPattern.cs
- InternalPermissions.cs
- Function.cs
- BaseValidator.cs
- DataRelation.cs
- CharUnicodeInfo.cs
- UriScheme.cs
- WindowsRichEditRange.cs
- StylusOverProperty.cs
- _UriTypeConverter.cs
- PackagePartCollection.cs
- Ports.cs
- WebRequestModuleElementCollection.cs
- GridViewUpdateEventArgs.cs
- InnerItemCollectionView.cs
- TreeViewEvent.cs
- PopupRoot.cs
- JapaneseLunisolarCalendar.cs
- DataBoundControlAdapter.cs
- CheckedPointers.cs
- PersonalizationState.cs
- MemberAccessException.cs
- MenuItem.cs
- EntityViewGenerationAttribute.cs
- ExternalFile.cs
- Image.cs
- counter.cs
- EventLogEntry.cs
- GroupQuery.cs
- WebServiceHostFactory.cs
- ToolStripDropDownClosingEventArgs.cs
- CriticalExceptions.cs
- XmlEncoding.cs
- DataGridRow.cs
- CipherData.cs
- RegisteredExpandoAttribute.cs
- Keywords.cs
- InternalDuplexChannelFactory.cs
- LinearKeyFrames.cs
- TimeoutTimer.cs
- MediaElement.cs
- CodeArgumentReferenceExpression.cs
- Ops.cs
- MenuItemStyleCollectionEditor.cs
- HttpResponseHeader.cs
- LinkLabelLinkClickedEvent.cs
- TypedServiceOperationListItem.cs
- BindingSourceDesigner.cs
- XmlValidatingReaderImpl.cs
- ColorConvertedBitmapExtension.cs
- InlineCollection.cs
- ObjectAnimationBase.cs
- RotationValidation.cs
- CodeDirectionExpression.cs
- EnglishPluralizationService.cs
- ConstructorArgumentAttribute.cs
- TextBox.cs
- PersonalizablePropertyEntry.cs
- ConfigXmlSignificantWhitespace.cs
- RegexWriter.cs
- Graph.cs
- ControlBuilderAttribute.cs
- BufferAllocator.cs
- ProxyDataContractResolver.cs
- OleDbInfoMessageEvent.cs
- DataControlFieldCell.cs
- ClientSettingsSection.cs
- XmlUnspecifiedAttribute.cs
- TextElementCollectionHelper.cs
- DispatchOperationRuntime.cs
- TableParagraph.cs
- PathSegmentCollection.cs
- ViewStateException.cs
- GridEntryCollection.cs
- Span.cs
- SplineKeyFrames.cs
- SoapExtension.cs
- InkCanvasSelectionAdorner.cs