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
- panel.cs
- DocumentOrderQuery.cs
- SecurityManager.cs
- HttpCookie.cs
- X509AsymmetricSecurityKey.cs
- WaitHandleCannotBeOpenedException.cs
- NegatedConstant.cs
- Monitor.cs
- CapiNative.cs
- CachedBitmap.cs
- DeadCharTextComposition.cs
- ConcatQueryOperator.cs
- SQLMembershipProvider.cs
- HatchBrush.cs
- Cursors.cs
- PropertySourceInfo.cs
- LookupBindingPropertiesAttribute.cs
- StorageConditionPropertyMapping.cs
- StrokeNodeOperations.cs
- ClientSettingsProvider.cs
- HandoffBehavior.cs
- Run.cs
- InitializingNewItemEventArgs.cs
- ImageAutomationPeer.cs
- PagedDataSource.cs
- FixedHighlight.cs
- FunctionNode.cs
- JournalNavigationScope.cs
- StickyNote.cs
- ClientSettingsStore.cs
- Viewport3DAutomationPeer.cs
- UnicodeEncoding.cs
- PeerEndPoint.cs
- OutputWindow.cs
- DataRow.cs
- UmAlQuraCalendar.cs
- ListBase.cs
- OdbcConnectionStringbuilder.cs
- RC2CryptoServiceProvider.cs
- TraceSource.cs
- CompilerGeneratedAttribute.cs
- KeyEventArgs.cs
- TextModifierScope.cs
- StackBuilderSink.cs
- NamespaceQuery.cs
- AssociativeAggregationOperator.cs
- DrawingContextWalker.cs
- DifferencingCollection.cs
- BlobPersonalizationState.cs
- TextServicesHost.cs
- ThaiBuddhistCalendar.cs
- ComponentEditorForm.cs
- LogRestartAreaEnumerator.cs
- Single.cs
- ArcSegment.cs
- KoreanCalendar.cs
- CodeNamespaceImportCollection.cs
- MSAANativeProvider.cs
- ValidatorCollection.cs
- MenuScrollingVisibilityConverter.cs
- VisualProxy.cs
- Transform3D.cs
- RegistrySecurity.cs
- TextAnchor.cs
- WebBrowserDocumentCompletedEventHandler.cs
- XPathDocument.cs
- ExtensibleClassFactory.cs
- LoadedOrUnloadedOperation.cs
- CompositeCollectionView.cs
- Debugger.cs
- CssTextWriter.cs
- Point4DConverter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SqlSupersetValidator.cs
- PartialCachingControl.cs
- MarginCollapsingState.cs
- SmiEventSink.cs
- ToolStripLabel.cs
- BamlRecordWriter.cs
- BindingCollection.cs
- Error.cs
- DocumentPage.cs
- EmbeddedObject.cs
- PolicyException.cs
- AffineTransform3D.cs
- IItemContainerGenerator.cs
- DocumentPageTextView.cs
- RefExpr.cs
- SmiXetterAccessMap.cs
- ThousandthOfEmRealPoints.cs
- ToolStripDropDownMenu.cs
- AudioFormatConverter.cs
- TemplateGroupCollection.cs
- DataGridBoolColumn.cs
- PatternMatcher.cs
- Model3DGroup.cs
- FilterException.cs
- PixelShader.cs
- RefreshEventArgs.cs
- ControlTemplate.cs