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
- EventMappingSettingsCollection.cs
- BamlReader.cs
- List.cs
- Int16AnimationBase.cs
- ProfileElement.cs
- SkinBuilder.cs
- XmlSchemaSimpleContent.cs
- QuaternionRotation3D.cs
- XmlCharacterData.cs
- DummyDataSource.cs
- FacetValues.cs
- EventWaitHandle.cs
- CommonProperties.cs
- TreeNodeEventArgs.cs
- FormViewUpdatedEventArgs.cs
- UnauthorizedWebPart.cs
- WebPartEditorOkVerb.cs
- SignedInfo.cs
- DataGridComponentEditor.cs
- SecurityHelper.cs
- Model3DCollection.cs
- AuthenticationException.cs
- NativeActivityAbortContext.cs
- TraceUtility.cs
- HTMLTextWriter.cs
- FrameworkTextComposition.cs
- Matrix3DConverter.cs
- ImportException.cs
- StaticExtension.cs
- InkPresenterAutomationPeer.cs
- SafeFileMappingHandle.cs
- DataSourceHelper.cs
- QueryContinueDragEvent.cs
- HtmlSelect.cs
- PartialTrustValidationBehavior.cs
- DesignParameter.cs
- NumericUpDownAcceleration.cs
- DirectoryRedirect.cs
- TraceSection.cs
- MenuCommand.cs
- _BasicClient.cs
- RSAPKCS1SignatureFormatter.cs
- XmlDocumentFieldSchema.cs
- BitmapData.cs
- SafeLibraryHandle.cs
- CustomMenuItemCollection.cs
- SplineKeyFrames.cs
- PropertyPathWorker.cs
- TreeBuilder.cs
- PropertyMap.cs
- DiagnosticTraceSource.cs
- _AcceptOverlappedAsyncResult.cs
- SecurityDocument.cs
- UnsafeNativeMethods.cs
- XPathNodeList.cs
- EntityCollection.cs
- VectorConverter.cs
- FixUp.cs
- SingleAnimationUsingKeyFrames.cs
- FieldCollectionEditor.cs
- PropertiesTab.cs
- PropertiesTab.cs
- HandlerWithFactory.cs
- AssemblyBuilderData.cs
- BuilderPropertyEntry.cs
- Rect.cs
- smtppermission.cs
- XmlIncludeAttribute.cs
- DataGridViewTopRowAccessibleObject.cs
- SecurityTokenResolver.cs
- ClientBuildManager.cs
- SqlBuffer.cs
- MessageQueuePermission.cs
- StylusPointProperty.cs
- SqlXmlStorage.cs
- ParameterEditorUserControl.cs
- MimeReturn.cs
- ObjectViewQueryResultData.cs
- FlowPanelDesigner.cs
- ImageInfo.cs
- ParameterModifier.cs
- HandlerBase.cs
- DbUpdateCommandTree.cs
- XmlArrayAttribute.cs
- XhtmlTextWriter.cs
- ColorConverter.cs
- SchemaExporter.cs
- QilGenerator.cs
- XmlQueryStaticData.cs
- StaticResourceExtension.cs
- ColorMap.cs
- SystemUdpStatistics.cs
- RSAPKCS1KeyExchangeFormatter.cs
- PointHitTestResult.cs
- PathBox.cs
- CompModSwitches.cs
- OleDbMetaDataFactory.cs
- PresentationAppDomainManager.cs
- HeaderedItemsControl.cs
- Effect.cs