Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Services / IO / System / IO / FileSystemEventArgs.cs / 1 / 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
- Point3D.cs
- SqlFunctionAttribute.cs
- AudioFileOut.cs
- TextSelectionHelper.cs
- Button.cs
- ExceptionUtil.cs
- RuntimeConfigLKG.cs
- PtsPage.cs
- ExtensionDataReader.cs
- RegexMatch.cs
- MenuBindingsEditor.cs
- OletxEnlistment.cs
- EntityViewContainer.cs
- MessagingDescriptionAttribute.cs
- ProtocolsSection.cs
- SettingsPropertyValueCollection.cs
- InheritedPropertyChangedEventArgs.cs
- XmlArrayItemAttributes.cs
- ConfigurationSectionCollection.cs
- CodeRegionDirective.cs
- ConnectionString.cs
- XmlImplementation.cs
- IDispatchConstantAttribute.cs
- Button.cs
- AutoSizeToolBoxItem.cs
- XPathNavigatorReader.cs
- TerminatorSinks.cs
- InfoCardRSACryptoProvider.cs
- XmlSchemaObjectCollection.cs
- DependencyObjectProvider.cs
- PropertyStore.cs
- SafeNativeMethods.cs
- CqlLexerHelpers.cs
- DbParameterHelper.cs
- FileAuthorizationModule.cs
- GPPOINT.cs
- FunctionQuery.cs
- ZipIOCentralDirectoryFileHeader.cs
- IteratorFilter.cs
- TypeFieldSchema.cs
- ProvidersHelper.cs
- QueryOpcode.cs
- NativeObjectSecurity.cs
- HwndAppCommandInputProvider.cs
- Int64Storage.cs
- HostSecurityManager.cs
- Helpers.cs
- OrderByBuilder.cs
- BitmapEffectInputData.cs
- ListViewGroupItemCollection.cs
- DashStyles.cs
- SocketAddress.cs
- ProfileManager.cs
- Tuple.cs
- IsolatedStorage.cs
- DataTableClearEvent.cs
- RegexCapture.cs
- ADConnectionHelper.cs
- RecognizerBase.cs
- _ServiceNameStore.cs
- ListViewItem.cs
- HelpFileFileNameEditor.cs
- WebServiceResponse.cs
- TraceListeners.cs
- KoreanCalendar.cs
- ResizeGrip.cs
- DataGridViewCellEventArgs.cs
- DecimalConstantAttribute.cs
- Trigger.cs
- GridErrorDlg.cs
- PagesSection.cs
- FloatMinMaxAggregationOperator.cs
- AnnotationService.cs
- List.cs
- XmlComplianceUtil.cs
- IdnMapping.cs
- XmlSchemaCompilationSettings.cs
- RegularExpressionValidator.cs
- ApplicationId.cs
- InputChannelBinder.cs
- EntityCommand.cs
- NameNode.cs
- CommonGetThemePartSize.cs
- ReadingWritingEntityEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- SchemaHelper.cs
- KoreanLunisolarCalendar.cs
- AuthenticationSection.cs
- CursorConverter.cs
- CreateUserErrorEventArgs.cs
- ActivityExecutor.cs
- ColorKeyFrameCollection.cs
- Int16Storage.cs
- HtmlDocument.cs
- DesignerTextBoxAdapter.cs
- TextSelectionProcessor.cs
- UriExt.cs
- IPipelineRuntime.cs
- HandleExceptionArgs.cs
- OleDbDataReader.cs