Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / FileSystemEventArgs.cs / 1305376 / 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
- SelectorAutomationPeer.cs
- TemplatePropertyEntry.cs
- ResolveDuplexAsyncResult.cs
- InfiniteIntConverter.cs
- Pipe.cs
- DataGridViewCellFormattingEventArgs.cs
- DriveInfo.cs
- DefaultBinder.cs
- DataList.cs
- FieldMetadata.cs
- StdValidatorsAndConverters.cs
- AppDomainProtocolHandler.cs
- ModelFunctionTypeElement.cs
- ScriptIgnoreAttribute.cs
- ModelFunction.cs
- TextTreeInsertUndoUnit.cs
- SqlDeflator.cs
- CorePropertiesFilter.cs
- ContextProperty.cs
- ToolStripOverflow.cs
- UdpSocketReceiveManager.cs
- PrintPreviewDialog.cs
- EnumValidator.cs
- GeometryHitTestResult.cs
- Rijndael.cs
- Model3D.cs
- EllipseGeometry.cs
- EventData.cs
- Misc.cs
- AmbiguousMatchException.cs
- SqlLiftIndependentRowExpressions.cs
- XamlBrushSerializer.cs
- RecognitionEventArgs.cs
- WebBrowsableAttribute.cs
- glyphs.cs
- _SecureChannel.cs
- PropertyToken.cs
- Screen.cs
- Wildcard.cs
- XmlEntity.cs
- ByteConverter.cs
- HttpSessionStateWrapper.cs
- Keywords.cs
- XPathMultyIterator.cs
- JpegBitmapEncoder.cs
- UserPersonalizationStateInfo.cs
- SkinBuilder.cs
- ImageButton.cs
- TdsParameterSetter.cs
- CommandLibraryHelper.cs
- AssemblyBuilder.cs
- DataBinder.cs
- HMACSHA384.cs
- DataGridViewDesigner.cs
- PackageRelationshipSelector.cs
- ClientUrlResolverWrapper.cs
- WorkflowQueuingService.cs
- Compiler.cs
- SchemaInfo.cs
- ToolStripItemCollection.cs
- PreviewPrintController.cs
- Base64Stream.cs
- TableLayoutStyle.cs
- SHA384.cs
- ThemeDirectoryCompiler.cs
- SettingsProperty.cs
- CompoundFileStorageReference.cs
- EnumerationRangeValidationUtil.cs
- AppDomain.cs
- SettingsPropertyIsReadOnlyException.cs
- XmlTextEncoder.cs
- ElementsClipboardData.cs
- MergeFilterQuery.cs
- GeneralTransform3DCollection.cs
- Quad.cs
- SqlNodeTypeOperators.cs
- PageTheme.cs
- PageCache.cs
- Point4D.cs
- ChannelServices.cs
- TreeViewItemAutomationPeer.cs
- WhitespaceRuleReader.cs
- ResourceDefaultValueAttribute.cs
- UnitySerializationHolder.cs
- ComponentChangingEvent.cs
- FloaterParagraph.cs
- MessageBox.cs
- FlowStep.cs
- Compiler.cs
- Style.cs
- ACE.cs
- WindowsListViewItemStartMenu.cs
- DataSourceCollectionBase.cs
- MessageHeaderAttribute.cs
- RbTree.cs
- BypassElementCollection.cs
- WebServiceErrorEvent.cs
- MostlySingletonList.cs
- ObjectDataSourceView.cs
- GenericTypeParameterBuilder.cs