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
- ProjectionCamera.cs
- GreenMethods.cs
- DmlSqlGenerator.cs
- RoleGroup.cs
- ColorPalette.cs
- EventSinkHelperWriter.cs
- DragEventArgs.cs
- BindingSource.cs
- SystemIPv4InterfaceProperties.cs
- WebPartCloseVerb.cs
- ObjectCloneHelper.cs
- CollectionViewSource.cs
- DragDeltaEventArgs.cs
- MarginCollapsingState.cs
- ModelVisual3D.cs
- Query.cs
- XmlNodeReader.cs
- FileLevelControlBuilderAttribute.cs
- ApplicationGesture.cs
- OperationPickerDialog.designer.cs
- ContainerParagraph.cs
- SharedDp.cs
- SafeFileHandle.cs
- PTUtility.cs
- QilExpression.cs
- JavaScriptString.cs
- Switch.cs
- ObjectDataSourceChooseMethodsPanel.cs
- ScrollItemPatternIdentifiers.cs
- Dispatcher.cs
- exports.cs
- basenumberconverter.cs
- DesignConnection.cs
- UnsafeNativeMethods.cs
- ObjectSet.cs
- DbException.cs
- RequestUriProcessor.cs
- WizardPanel.cs
- DataContractSerializer.cs
- JsonWriter.cs
- TextBox.cs
- Filter.cs
- HtmlInputReset.cs
- BaseCollection.cs
- DbModificationCommandTree.cs
- TouchPoint.cs
- OleDbDataReader.cs
- DataGridParentRows.cs
- RestClientProxyHandler.cs
- FusionWrap.cs
- TcpTransportBindingElement.cs
- SqlHelper.cs
- FileDialog_Vista_Interop.cs
- QueryCacheKey.cs
- TraceInternal.cs
- RectConverter.cs
- InputLanguageSource.cs
- EFAssociationProvider.cs
- XamlInt32CollectionSerializer.cs
- Memoizer.cs
- VisualProxy.cs
- DataGridItemEventArgs.cs
- VBIdentifierNameEditor.cs
- OciHandle.cs
- TimeoutException.cs
- SchemaComplexType.cs
- SqlXmlStorage.cs
- WebContext.cs
- CommandHelper.cs
- DebugInfoExpression.cs
- EmptyReadOnlyDictionaryInternal.cs
- ClientSession.cs
- BinaryMethodMessage.cs
- MsmqTransportReceiveParameters.cs
- ErrorHandler.cs
- MulticastDelegate.cs
- MultiView.cs
- FunctionDetailsReader.cs
- oledbmetadatacolumnnames.cs
- X509Extension.cs
- FlowLayoutPanel.cs
- XmlRawWriterWrapper.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- EdmFunctions.cs
- ControlPropertyNameConverter.cs
- Fx.cs
- SQLByte.cs
- CompiledELinqQueryState.cs
- Button.cs
- MILUtilities.cs
- SchemaComplexType.cs
- SystemIPAddressInformation.cs
- XmlAttributes.cs
- Context.cs
- SymbolTable.cs
- DataGridViewRowPrePaintEventArgs.cs
- TypeLoadException.cs
- DataListDesigner.cs
- KeyValueConfigurationCollection.cs
- AnonymousIdentificationModule.cs