Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- QilGeneratorEnv.cs
- ClientSettings.cs
- HttpResponseInternalBase.cs
- GridViewRow.cs
- SubMenuStyleCollection.cs
- MonthCalendar.cs
- CharEntityEncoderFallback.cs
- QilName.cs
- DbConnectionOptions.cs
- TraceData.cs
- DataColumnMappingCollection.cs
- TemplatedAdorner.cs
- PropertyStore.cs
- DataListAutoFormat.cs
- ExternalException.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- WebSysDisplayNameAttribute.cs
- ImportedNamespaceContextItem.cs
- DBPropSet.cs
- MeshGeometry3D.cs
- OutputCacheSettings.cs
- TextRangeEditTables.cs
- CodeRegionDirective.cs
- HtmlInputFile.cs
- _NetworkingPerfCounters.cs
- SetStateEventArgs.cs
- ChangePasswordDesigner.cs
- AnnotationComponentChooser.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ProvidePropertyAttribute.cs
- XsdBuildProvider.cs
- MenuItem.cs
- Renderer.cs
- FactorySettingsElement.cs
- MultiViewDesigner.cs
- ConnectionsZone.cs
- SingleStorage.cs
- WindowsFont.cs
- EntryPointNotFoundException.cs
- Rect.cs
- SqlNode.cs
- TransformerConfigurationWizardBase.cs
- selecteditemcollection.cs
- ManipulationCompletedEventArgs.cs
- ConversionContext.cs
- DrawingCollection.cs
- TypedColumnHandler.cs
- UshortList2.cs
- AliasedSlot.cs
- SafeNativeMethods.cs
- RadioButtonStandardAdapter.cs
- DependencyObjectType.cs
- XmlMtomWriter.cs
- TypeTypeConverter.cs
- InstalledFontCollection.cs
- TrackingCondition.cs
- DynamicRendererThreadManager.cs
- ScriptDescriptor.cs
- TraceContextRecord.cs
- NextPreviousPagerField.cs
- PagePropertiesChangingEventArgs.cs
- Action.cs
- Adorner.cs
- UnionCqlBlock.cs
- ExpressionBuilder.cs
- TransformedBitmap.cs
- Pair.cs
- PtsContext.cs
- DateTimeUtil.cs
- IsolatedStorageFilePermission.cs
- ReferencedType.cs
- Clock.cs
- Pair.cs
- DataServiceClientException.cs
- _SecureChannel.cs
- DataGrid.cs
- BuildProviderCollection.cs
- ReferenceService.cs
- ToolStripItemTextRenderEventArgs.cs
- WebControlToolBoxItem.cs
- FormsAuthenticationEventArgs.cs
- XNodeNavigator.cs
- Constant.cs
- ScrollPatternIdentifiers.cs
- XmlNavigatorFilter.cs
- DecoderReplacementFallback.cs
- safemediahandle.cs
- GeometryCombineModeValidation.cs
- DataPagerFieldCommandEventArgs.cs
- TextEffectResolver.cs
- DigestTraceRecordHelper.cs
- LeaseManager.cs
- Point3DValueSerializer.cs
- WebResponse.cs
- XmlIlGenerator.cs
- OuterGlowBitmapEffect.cs
- xmlglyphRunInfo.cs
- SubpageParagraph.cs
- EventArgs.cs
- CheckableControlBaseAdapter.cs