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
- DataObjectMethodAttribute.cs
- WebConfigurationManager.cs
- BulletedList.cs
- sqlser.cs
- FocusWithinProperty.cs
- InheritanceAttribute.cs
- XmlByteStreamWriter.cs
- SiteMap.cs
- DesignTimeTemplateParser.cs
- FrameworkPropertyMetadata.cs
- TextHidden.cs
- FlowchartDesignerCommands.cs
- ColorConvertedBitmapExtension.cs
- Button.cs
- XmlSchemaObject.cs
- ToolStripRenderer.cs
- graph.cs
- DataGridDetailsPresenter.cs
- VectorAnimationUsingKeyFrames.cs
- InfoCardSymmetricCrypto.cs
- GeometryDrawing.cs
- SystemIPv4InterfaceProperties.cs
- TemplateColumn.cs
- WindowPatternIdentifiers.cs
- NavigationService.cs
- PathFigure.cs
- JournalNavigationScope.cs
- TypedAsyncResult.cs
- ButtonFlatAdapter.cs
- DispatcherOperation.cs
- FieldTemplateUserControl.cs
- BinaryConverter.cs
- ObjectParameterCollection.cs
- ExpressionBindingCollection.cs
- SQLByteStorage.cs
- CircleHotSpot.cs
- PrivilegedConfigurationManager.cs
- BinaryMethodMessage.cs
- UnmanagedMemoryStream.cs
- TransformerInfo.cs
- QueryCacheEntry.cs
- KeyTimeConverter.cs
- CustomWebEventKey.cs
- ItemContainerGenerator.cs
- ScriptControlManager.cs
- TrackBarRenderer.cs
- SemanticTag.cs
- QEncodedStream.cs
- CompilerHelpers.cs
- XmlChoiceIdentifierAttribute.cs
- Solver.cs
- Matrix.cs
- ServiceOperationParameter.cs
- MetadataItemEmitter.cs
- TemplatedWizardStep.cs
- XmlSchemaDatatype.cs
- CollectionBuilder.cs
- DrawingGroup.cs
- RemotingConfiguration.cs
- WebExceptionStatus.cs
- ContentElement.cs
- ObjectConverter.cs
- ToolStripPanelCell.cs
- TableLayoutRowStyleCollection.cs
- TreeViewImageGenerator.cs
- FlowLayoutSettings.cs
- EmptyImpersonationContext.cs
- NullToBooleanConverter.cs
- DateTimeParse.cs
- ISAPIWorkerRequest.cs
- DelegateSerializationHolder.cs
- HtmlTextArea.cs
- SoapAttributeAttribute.cs
- MimeMultiPart.cs
- ProcessModule.cs
- WaitHandleCannotBeOpenedException.cs
- XmlNodeReader.cs
- PtsCache.cs
- ApplicationSecurityInfo.cs
- ObjectHandle.cs
- XPathSelectionIterator.cs
- DefinitionBase.cs
- DefaultTextStore.cs
- PropertyEmitter.cs
- ListViewGroupConverter.cs
- _SecureChannel.cs
- StreamGeometryContext.cs
- WebPartTransformerCollection.cs
- InputMethodStateTypeInfo.cs
- SerialErrors.cs
- TypeUsageBuilder.cs
- EventLogEntryCollection.cs
- JsonUriDataContract.cs
- RbTree.cs
- Set.cs
- OrderedEnumerableRowCollection.cs
- TiffBitmapEncoder.cs
- TextElement.cs
- CommandID.cs
- DragDeltaEventArgs.cs