Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ToolStripDropDownClosedEventArgs.cs
- JournalEntry.cs
- ContextDataSource.cs
- EntityModelSchemaGenerator.cs
- Misc.cs
- Int32Converter.cs
- XmlHierarchicalEnumerable.cs
- DocumentApplication.cs
- TreeChangeInfo.cs
- odbcmetadatafactory.cs
- FormatConvertedBitmap.cs
- SelectQueryOperator.cs
- IDQuery.cs
- Control.cs
- SchemaInfo.cs
- EncoderParameters.cs
- Constraint.cs
- SoapExtensionReflector.cs
- TransformerInfoCollection.cs
- EmbeddedMailObjectsCollection.cs
- XmlILConstructAnalyzer.cs
- PrinterUnitConvert.cs
- Rect3D.cs
- WindowsGraphics.cs
- D3DImage.cs
- XslUrlEditor.cs
- HostingEnvironment.cs
- TdsParserSafeHandles.cs
- FilteredDataSetHelper.cs
- MultiPageTextView.cs
- DrawingGroupDrawingContext.cs
- SemaphoreFullException.cs
- SatelliteContractVersionAttribute.cs
- XmlWriterSettings.cs
- AlternateView.cs
- EntityDataSourceConfigureObjectContext.cs
- CodeStatement.cs
- FieldNameLookup.cs
- ObjectItemNoOpAssemblyLoader.cs
- CompensatableTransactionScopeActivityDesigner.cs
- ImageSource.cs
- ConsumerConnectionPointCollection.cs
- UIElement3D.cs
- CodeDirectiveCollection.cs
- XPathScanner.cs
- SvcFileManager.cs
- _NestedMultipleAsyncResult.cs
- Pen.cs
- WindowsSpinner.cs
- Environment.cs
- ModelVisual3D.cs
- TableItemStyle.cs
- DesignerEditorPartChrome.cs
- Table.cs
- ProtectedProviderSettings.cs
- QilLiteral.cs
- DllNotFoundException.cs
- AnnotationObservableCollection.cs
- EventHandlersDesigner.cs
- dbdatarecord.cs
- XmlAutoDetectWriter.cs
- MimeMultiPart.cs
- AsyncCodeActivity.cs
- DocumentXPathNavigator.cs
- XmlSchemaAttributeGroupRef.cs
- SetStateEventArgs.cs
- BadImageFormatException.cs
- SqlDataSourceSelectingEventArgs.cs
- SqlCommandSet.cs
- FrameworkContextData.cs
- ObjectManager.cs
- CommonGetThemePartSize.cs
- HttpStreamFormatter.cs
- GridSplitterAutomationPeer.cs
- counter.cs
- Application.cs
- HyperLinkDesigner.cs
- _SpnDictionary.cs
- BlobPersonalizationState.cs
- RadioButtonPopupAdapter.cs
- DataBindingExpressionBuilder.cs
- RelationalExpressions.cs
- TemplateBuilder.cs
- AttributeProviderAttribute.cs
- SecurityTokenSerializer.cs
- CacheChildrenQuery.cs
- ServiceParser.cs
- QueryValue.cs
- followingsibling.cs
- OverflowException.cs
- BitStream.cs
- CodeParameterDeclarationExpressionCollection.cs
- Point3DCollection.cs
- XmlDocumentSerializer.cs
- CommentEmitter.cs
- FixedPosition.cs
- SerializationSectionGroup.cs
- DoubleLinkList.cs
- DialogWindow.cs
- ValueExpressions.cs