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
- XmlSchema.cs
- EventDriven.cs
- ApplicationServicesHostFactory.cs
- LinearKeyFrames.cs
- NetworkStream.cs
- ColorIndependentAnimationStorage.cs
- EventMap.cs
- SequentialUshortCollection.cs
- SHA1.cs
- BindingExpressionBase.cs
- StateMachine.cs
- ConstraintEnumerator.cs
- QilXmlReader.cs
- XmlStringTable.cs
- LinqDataSourceUpdateEventArgs.cs
- InternalControlCollection.cs
- SkinBuilder.cs
- CalendarDateRange.cs
- RowVisual.cs
- PlatformCulture.cs
- EnterpriseServicesHelper.cs
- SelectedDatesCollection.cs
- DataListItemEventArgs.cs
- WebPartZoneCollection.cs
- WindowsScroll.cs
- WebFormDesignerActionService.cs
- DataRecordInternal.cs
- CallbackTimeoutsBehavior.cs
- XamlVector3DCollectionSerializer.cs
- QuadTree.cs
- HttpsHostedTransportConfiguration.cs
- BufferedOutputStream.cs
- TextFormatterContext.cs
- RoutedEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- AppDomainProtocolHandler.cs
- ParallelRangeManager.cs
- SafeIUnknown.cs
- HttpConfigurationSystem.cs
- ProcessMonitor.cs
- XmlQualifiedName.cs
- ComponentDispatcher.cs
- Mouse.cs
- ObjectParameterCollection.cs
- DetailsViewActionList.cs
- VisualTreeHelper.cs
- SudsCommon.cs
- EventWaitHandleSecurity.cs
- MemoryFailPoint.cs
- SerializationFieldInfo.cs
- SamlAuthorityBinding.cs
- TabletDeviceInfo.cs
- AsynchronousChannelMergeEnumerator.cs
- Models.cs
- EpmSourceTree.cs
- EntityDataSourceReferenceGroup.cs
- CharacterHit.cs
- GridItemCollection.cs
- LayoutSettings.cs
- DynamicDiscoveryDocument.cs
- ConfigXmlComment.cs
- ParserOptions.cs
- ToolStripArrowRenderEventArgs.cs
- Int64AnimationBase.cs
- SpoolingTask.cs
- MimeTypePropertyAttribute.cs
- FunctionQuery.cs
- EventSourceCreationData.cs
- Visual3D.cs
- TextHintingModeValidation.cs
- LinkConverter.cs
- HyperLink.cs
- hwndwrapper.cs
- TextLine.cs
- RootNamespaceAttribute.cs
- DeleteMemberBinder.cs
- PropertyCondition.cs
- ProgramPublisher.cs
- InfoCardBaseException.cs
- UpdateTranslator.cs
- RawKeyboardInputReport.cs
- QuaternionAnimation.cs
- ISAPIApplicationHost.cs
- figurelength.cs
- SiteMapHierarchicalDataSourceView.cs
- TimeSpan.cs
- DefaultAutoFieldGenerator.cs
- DetailsViewRowCollection.cs
- StrokeIntersection.cs
- EndPoint.cs
- DbConnectionPoolCounters.cs
- StorageAssociationTypeMapping.cs
- InvalidAsynchronousStateException.cs
- MimeTypeAttribute.cs
- ConfigurationManagerInternalFactory.cs
- EntityDataSourceWrapperCollection.cs
- WorkflowCommandExtensionItem.cs
- DataGridViewComboBoxCell.cs
- CollectionViewGroup.cs
- XmlAttributeOverrides.cs