Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / RenamedEventArgs.cs / 1305376 / RenamedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; using System.Runtime.Versioning; ////// 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 { [ResourceExposure(ResourceScope.Machine)] [ResourceConsumption(ResourceScope.Machine)] 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// 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
- EventLevel.cs
- WindowsGraphicsWrapper.cs
- ManipulationStartingEventArgs.cs
- WebServiceTypeData.cs
- updateconfighost.cs
- PerformanceCounterPermission.cs
- ProfileBuildProvider.cs
- SafeCoTaskMem.cs
- DescendantOverDescendantQuery.cs
- MetadataItemCollectionFactory.cs
- SafeCloseHandleCritical.cs
- WindowsRegion.cs
- PersonalizableAttribute.cs
- SystemMulticastIPAddressInformation.cs
- CodeAttachEventStatement.cs
- ObjectTag.cs
- GridViewUpdatedEventArgs.cs
- DBSqlParserColumn.cs
- ColorTransformHelper.cs
- SecureStringHasher.cs
- BitmapImage.cs
- TextContainerHelper.cs
- ListItem.cs
- XPathMultyIterator.cs
- HitTestFilterBehavior.cs
- DataGridViewRowCollection.cs
- IsolatedStorageFile.cs
- DataViewManagerListItemTypeDescriptor.cs
- XmlHierarchicalEnumerable.cs
- ValidatingReaderNodeData.cs
- EncryptedKeyIdentifierClause.cs
- TextViewBase.cs
- SiteOfOriginContainer.cs
- Splitter.cs
- EntityViewGenerationAttribute.cs
- XmlWrappingReader.cs
- CqlParser.cs
- Composition.cs
- FactoryGenerator.cs
- IncrementalCompileAnalyzer.cs
- X509ChainPolicy.cs
- MediaElementAutomationPeer.cs
- Sql8ConformanceChecker.cs
- dsa.cs
- NavigatingCancelEventArgs.cs
- PreservationFileWriter.cs
- UniqueID.cs
- CodeNamespace.cs
- XmlSchemaSimpleContentExtension.cs
- SessionStateSection.cs
- SqlDataAdapter.cs
- Scene3D.cs
- StdRegProviderWrapper.cs
- ProxyAttribute.cs
- FigureParagraph.cs
- CompilerLocalReference.cs
- RelativeSource.cs
- FlowchartDesignerCommands.cs
- DataGridViewComponentPropertyGridSite.cs
- LazyLoadBehavior.cs
- ImpersonateTokenRef.cs
- XmlSchemaAnnotation.cs
- MulticastNotSupportedException.cs
- SchemaTableColumn.cs
- GlobalItem.cs
- EnumDataContract.cs
- DataGridCellsPresenter.cs
- Monitor.cs
- ProgressPage.cs
- WorkflowView.cs
- PermissionListSet.cs
- CryptoProvider.cs
- OracleTimeSpan.cs
- ConnectionProviderAttribute.cs
- AnnotationHighlightLayer.cs
- NonClientArea.cs
- SafeRegistryKey.cs
- OutputCacheSection.cs
- Attributes.cs
- AssemblyBuilder.cs
- Char.cs
- MobileControlBuilder.cs
- XNodeValidator.cs
- SurrogateChar.cs
- BindableAttribute.cs
- ContentWrapperAttribute.cs
- ExpressionBindingCollection.cs
- SqlDependencyListener.cs
- DbConnectionClosed.cs
- WebProxyScriptElement.cs
- RuntimeArgumentHandle.cs
- ExpressionDumper.cs
- ListViewItemEventArgs.cs
- COM2PictureConverter.cs
- GeneralTransform2DTo3D.cs
- SerializationInfo.cs
- CodeDirectiveCollection.cs
- PropVariant.cs
- HandlerBase.cs
- DetailsViewCommandEventArgs.cs