Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / FileSystemEventArgs.cs / 1305376 / FileSystemEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; ////// public class FileSystemEventArgs : EventArgs { private WatcherChangeTypes changeType; private string name; private string fullPath; ///Provides data for the directory events: ///, , . /// public FileSystemEventArgs(WatcherChangeTypes changeType, string directory, string name) { this.changeType = changeType; this.name = name; // Ensure that the directory name ends with a "\" if (!directory.EndsWith("\\", StringComparison.Ordinal)) { directory = directory + "\\"; } this.fullPath = directory + name; } ///Initializes a new instance of the ///class. /// public WatcherChangeTypes ChangeType { get { return changeType; } } ////// Gets /// one of the ////// values. /// /// public string FullPath { get { return fullPath; } } ////// Gets /// the /// fully qualifed path of the affected file or directory. /// ////// public string Name { get { return name; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets /// the name of the affected file or directory. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; ////// public class FileSystemEventArgs : EventArgs { private WatcherChangeTypes changeType; private string name; private string fullPath; ///Provides data for the directory events: ///, , . /// public FileSystemEventArgs(WatcherChangeTypes changeType, string directory, string name) { this.changeType = changeType; this.name = name; // Ensure that the directory name ends with a "\" if (!directory.EndsWith("\\", StringComparison.Ordinal)) { directory = directory + "\\"; } this.fullPath = directory + name; } ///Initializes a new instance of the ///class. /// public WatcherChangeTypes ChangeType { get { return changeType; } } ////// Gets /// one of the ////// values. /// /// public string FullPath { get { return fullPath; } } ////// Gets /// the /// fully qualifed path of the affected file or directory. /// ////// public string Name { get { return name; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets /// the name of the affected file or directory. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DebuggerService.cs
- RecognizeCompletedEventArgs.cs
- TextElementEnumerator.cs
- HMACSHA1.cs
- __Error.cs
- FontDriver.cs
- QueryParameter.cs
- DetectRunnableInstancesTask.cs
- GroupBoxDesigner.cs
- TabControl.cs
- HtmlControl.cs
- ApplicationDirectoryMembershipCondition.cs
- LineBreakRecord.cs
- RunWorkerCompletedEventArgs.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- PropertyMapper.cs
- BitmapData.cs
- BoundPropertyEntry.cs
- DataStorage.cs
- RouteItem.cs
- CustomMenuItemCollection.cs
- NamespaceEmitter.cs
- ValuePattern.cs
- StylusPointPropertyInfo.cs
- Stack.cs
- ResizeBehavior.cs
- SendKeys.cs
- Floater.cs
- RectAnimationBase.cs
- base64Transforms.cs
- ClaimSet.cs
- ForceCopyBuildProvider.cs
- TraceHandler.cs
- XmlCollation.cs
- ReflectionUtil.cs
- ListViewDeletedEventArgs.cs
- ColorConverter.cs
- UrlPath.cs
- ParallelTimeline.cs
- BoolExpr.cs
- dbdatarecord.cs
- EmptyElement.cs
- ArrayConverter.cs
- CollectionContainer.cs
- PersonalizationProvider.cs
- SerializerWriterEventHandlers.cs
- OlePropertyStructs.cs
- EventLogPermissionEntryCollection.cs
- dbdatarecord.cs
- DataControlImageButton.cs
- RecoverInstanceLocksCommand.cs
- ProcessProtocolHandler.cs
- PublisherMembershipCondition.cs
- ClientType.cs
- Error.cs
- XmlnsCompatibleWithAttribute.cs
- ThreadStartException.cs
- TimelineClockCollection.cs
- SecUtil.cs
- StylusCollection.cs
- FormViewCommandEventArgs.cs
- DataGrid.cs
- TypeContext.cs
- DSACryptoServiceProvider.cs
- TypeSystem.cs
- StoreItemCollection.cs
- Schema.cs
- Delegate.cs
- MainMenu.cs
- Win32Exception.cs
- MulticastIPAddressInformationCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- StructuralType.cs
- ViewStateException.cs
- ListViewCommandEventArgs.cs
- XmlQueryStaticData.cs
- ModuleConfigurationInfo.cs
- UIElementParagraph.cs
- Vector3DIndependentAnimationStorage.cs
- Publisher.cs
- RightsManagementInformation.cs
- SelectionItemPatternIdentifiers.cs
- PenThreadWorker.cs
- Vector3DCollectionConverter.cs
- UndoManager.cs
- OdbcException.cs
- XmlArrayAttribute.cs
- XmlSchemaComplexContentExtension.cs
- InputBinding.cs
- ReplacementText.cs
- NativeMethodsOther.cs
- Section.cs
- MatcherBuilder.cs
- CompositeDataBoundControl.cs
- StrokeIntersection.cs
- TextRunProperties.cs
- DataRow.cs
- FrameworkContextData.cs
- Italic.cs
- HttpPostProtocolReflector.cs