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
- ScopeCollection.cs
- ManagedWndProcTracker.cs
- SqlCacheDependencyDatabaseCollection.cs
- TextDocumentView.cs
- OrderPreservingPipeliningSpoolingTask.cs
- PingReply.cs
- SqlError.cs
- NumericUpDownAccelerationCollection.cs
- PictureBoxDesigner.cs
- MetadataArtifactLoaderResource.cs
- PropertyChangeTracker.cs
- XmlUnspecifiedAttribute.cs
- EdmTypeAttribute.cs
- LineInfo.cs
- WebHttpSecurityElement.cs
- TimeZone.cs
- ReaderContextStackData.cs
- UnsafeNativeMethods.cs
- UnionCqlBlock.cs
- DoubleKeyFrameCollection.cs
- PropertySegmentSerializationProvider.cs
- XmlDataDocument.cs
- SortQuery.cs
- DropShadowEffect.cs
- RbTree.cs
- BinaryFormatter.cs
- BaseDataBoundControlDesigner.cs
- LiteralTextContainerControlBuilder.cs
- TextSpanModifier.cs
- ReadContentAsBinaryHelper.cs
- RNGCryptoServiceProvider.cs
- TypeListConverter.cs
- XhtmlBasicListAdapter.cs
- WebPartManagerInternals.cs
- GridItemCollection.cs
- ConnectorSelectionGlyph.cs
- CodeRegionDirective.cs
- ProfileManager.cs
- BufferBuilder.cs
- _NegotiateClient.cs
- CustomAttribute.cs
- WebScriptClientGenerator.cs
- _NestedMultipleAsyncResult.cs
- CollectionEditor.cs
- SupportingTokenListenerFactory.cs
- ControlIdConverter.cs
- TransportConfigurationTypeElement.cs
- Buffer.cs
- ToolstripProfessionalRenderer.cs
- CalendarItem.cs
- GradientStop.cs
- SoundPlayerAction.cs
- TypeSystem.cs
- ValueConversionAttribute.cs
- ErrorRuntimeConfig.cs
- EngineSiteSapi.cs
- BinaryFormatter.cs
- BitmapCodecInfoInternal.cs
- SafeNativeMethods.cs
- SharedPersonalizationStateInfo.cs
- Point3DConverter.cs
- LassoHelper.cs
- keycontainerpermission.cs
- Internal.cs
- InstanceNameConverter.cs
- ContractAdapter.cs
- RectangleHotSpot.cs
- X509ImageLogo.cs
- DeclarationUpdate.cs
- CompilerParameters.cs
- InkCollectionBehavior.cs
- ConstructorNeedsTagAttribute.cs
- PropertyGeneratedEventArgs.cs
- Timer.cs
- _IPv6Address.cs
- SequenceDesignerAccessibleObject.cs
- IriParsingElement.cs
- StringTraceRecord.cs
- PersonalizationProviderCollection.cs
- DiscriminatorMap.cs
- SamlSubject.cs
- IsolatedStoragePermission.cs
- XmlNodeList.cs
- ReadOnlyHierarchicalDataSource.cs
- TextElement.cs
- TranslateTransform3D.cs
- MessageFormatterConverter.cs
- HtmlControlPersistable.cs
- ServiceHostingEnvironment.cs
- DataGridViewRowPrePaintEventArgs.cs
- FtpWebRequest.cs
- SystemNetworkInterface.cs
- unsafenativemethodsother.cs
- FormViewPagerRow.cs
- PanelDesigner.cs
- IndexOutOfRangeException.cs
- CallContext.cs
- TranslateTransform.cs
- RootAction.cs
- InternalBufferOverflowException.cs