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
- Image.cs
- DataBindingValueUIHandler.cs
- CheckPair.cs
- ValidationError.cs
- ObservableDictionary.cs
- XmlTextWriter.cs
- NumberSubstitution.cs
- ResourceAttributes.cs
- HttpResponseHeader.cs
- TypeDelegator.cs
- DesignerDataRelationship.cs
- MenuItem.cs
- TextElementCollectionHelper.cs
- SchemaImporterExtension.cs
- CustomErrorsSection.cs
- CrossAppDomainChannel.cs
- TextProperties.cs
- GridEntryCollection.cs
- HttpWebRequestElement.cs
- MaterialCollection.cs
- ParentQuery.cs
- Publisher.cs
- MaxSessionCountExceededException.cs
- SafeFileMappingHandle.cs
- HtmlTitle.cs
- __ComObject.cs
- HttpRequestCacheValidator.cs
- FreeFormDesigner.cs
- LinearQuaternionKeyFrame.cs
- Aes.cs
- ColumnMapProcessor.cs
- DbModificationCommandTree.cs
- FtpCachePolicyElement.cs
- ParallelEnumerableWrapper.cs
- CssTextWriter.cs
- EmulateRecognizeCompletedEventArgs.cs
- SvcMapFileLoader.cs
- webeventbuffer.cs
- DynamicField.cs
- CustomSignedXml.cs
- WmlCommandAdapter.cs
- CodeGenerator.cs
- PointCollection.cs
- XPathScanner.cs
- FormViewUpdateEventArgs.cs
- IdleTimeoutMonitor.cs
- ItemTypeToolStripMenuItem.cs
- ScrollData.cs
- Size3DValueSerializer.cs
- TTSEngineProxy.cs
- LineServices.cs
- IriParsingElement.cs
- SimpleApplicationHost.cs
- PathFigureCollectionConverter.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- RetrieveVirtualItemEventArgs.cs
- OdbcConnectionFactory.cs
- BreadCrumbTextConverter.cs
- Closure.cs
- ModelItem.cs
- AuthenticationService.cs
- ProvidersHelper.cs
- GridLengthConverter.cs
- WaveHeader.cs
- EmbeddedMailObject.cs
- AttributeCollection.cs
- ActivityContext.cs
- DataGridViewTextBoxEditingControl.cs
- LingerOption.cs
- Region.cs
- AnnotationMap.cs
- ProxyWebPart.cs
- AggregatePushdown.cs
- IPipelineRuntime.cs
- ComponentSerializationService.cs
- CriticalHandle.cs
- DataTableReader.cs
- UnhandledExceptionEventArgs.cs
- ProfileGroupSettings.cs
- X509CertificateChain.cs
- InplaceBitmapMetadataWriter.cs
- DefaultMemberAttribute.cs
- PropertyGeneratedEventArgs.cs
- AssemblyName.cs
- invalidudtexception.cs
- SingleTagSectionHandler.cs
- ThreadAbortException.cs
- ModuleBuilderData.cs
- BindUriHelper.cs
- IMembershipProvider.cs
- XmlSchemaAttributeGroupRef.cs
- PseudoWebRequest.cs
- CodeIndexerExpression.cs
- CompiledQuery.cs
- CryptographicAttribute.cs
- BamlReader.cs
- ApplicationProxyInternal.cs
- SoapTypeAttribute.cs
- ModelFunctionTypeElement.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs