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
- SqlIdentifier.cs
- DispatchWrapper.cs
- TextBounds.cs
- GridItemCollection.cs
- CommonDialog.cs
- IPAddressCollection.cs
- RtType.cs
- EncoderBestFitFallback.cs
- FontDriver.cs
- PersistenceMetadataNamespace.cs
- WebPartVerbCollection.cs
- ResourceCategoryAttribute.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ConnectionProviderAttribute.cs
- SplashScreen.cs
- glyphs.cs
- XPathScanner.cs
- ApplicationActivator.cs
- GiveFeedbackEvent.cs
- ToolBarOverflowPanel.cs
- MetadataException.cs
- Matrix.cs
- XmlException.cs
- AssemblyResourceLoader.cs
- ProcessStartInfo.cs
- InfoCardCryptoHelper.cs
- ColorConvertedBitmap.cs
- MessageFormatterConverter.cs
- ThreadPoolTaskScheduler.cs
- ProfessionalColorTable.cs
- DependencyPropertyDescriptor.cs
- DesignTimeVisibleAttribute.cs
- StringSorter.cs
- RequiredAttributeAttribute.cs
- SystemResourceKey.cs
- AssemblyInfo.cs
- SqlUtil.cs
- GridItemProviderWrapper.cs
- OleDbDataAdapter.cs
- Reference.cs
- InternalBufferOverflowException.cs
- DataGridItemAutomationPeer.cs
- NonVisualControlAttribute.cs
- SoapFault.cs
- ControlValuePropertyAttribute.cs
- DataExchangeServiceBinder.cs
- MultipartContentParser.cs
- TextServicesDisplayAttribute.cs
- SspiSecurityTokenParameters.cs
- ToolStripItemRenderEventArgs.cs
- HttpResponseHeader.cs
- DecoderExceptionFallback.cs
- ClientRuntimeConfig.cs
- DesignTableCollection.cs
- SourceFileBuildProvider.cs
- InternalsVisibleToAttribute.cs
- DataGridViewCellLinkedList.cs
- RootBrowserWindow.cs
- GPStream.cs
- XsltContext.cs
- webproxy.cs
- EventEntry.cs
- FormsAuthenticationModule.cs
- UnsafeNativeMethods.cs
- IsolatedStorageException.cs
- ForeignConstraint.cs
- AnnotationDocumentPaginator.cs
- xamlnodes.cs
- Baml2006KnownTypes.cs
- WebPartConnectionsDisconnectVerb.cs
- TypeGeneratedEventArgs.cs
- IBuiltInEvidence.cs
- PropertyEmitterBase.cs
- EntityDataSourceUtil.cs
- CellTreeNodeVisitors.cs
- URLMembershipCondition.cs
- RelOps.cs
- MaskedTextProvider.cs
- SecurityPolicySection.cs
- SafeSecurityHelper.cs
- Renderer.cs
- BamlWriter.cs
- DbConnectionClosed.cs
- CallId.cs
- Semaphore.cs
- WmfPlaceableFileHeader.cs
- CqlIdentifiers.cs
- SymLanguageVendor.cs
- MethodSignatureGenerator.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- filewebrequest.cs
- ImplicitInputBrush.cs
- ShapingWorkspace.cs
- UpdateTracker.cs
- OleDbErrorCollection.cs
- SourceFileInfo.cs
- ToolboxItemImageConverter.cs
- _HeaderInfoTable.cs
- ButtonFlatAdapter.cs
- CompilationUtil.cs