Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ContentFileHelper.cs
- MsmqInputMessage.cs
- SerializationEventsCache.cs
- EdmSchemaAttribute.cs
- DirectoryObjectSecurity.cs
- SignedPkcs7.cs
- SimpleType.cs
- DataSourceGeneratorException.cs
- PresentationAppDomainManager.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DefaultValueAttribute.cs
- XmlSchemaObjectCollection.cs
- DataSourceCache.cs
- ContainerControlDesigner.cs
- NavigationWindowAutomationPeer.cs
- RequestCachePolicy.cs
- OverlappedAsyncResult.cs
- SchemaType.cs
- Transform.cs
- HtmlInputCheckBox.cs
- ManipulationStartingEventArgs.cs
- ExcludeFromCodeCoverageAttribute.cs
- SafeFileHandle.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- OdbcEnvironment.cs
- PrinterUnitConvert.cs
- OdbcFactory.cs
- DurationConverter.cs
- InputMethodStateChangeEventArgs.cs
- ListMarkerSourceInfo.cs
- SymmetricAlgorithm.cs
- CodeStatement.cs
- XPathScanner.cs
- MatrixTransform3D.cs
- HtmlProps.cs
- DiagnosticTrace.cs
- LayoutTableCell.cs
- NetCodeGroup.cs
- RequestUriProcessor.cs
- CodeThrowExceptionStatement.cs
- PTUtility.cs
- DbModificationClause.cs
- AncestorChangedEventArgs.cs
- DiscoveryClientReferences.cs
- AsymmetricKeyExchangeFormatter.cs
- ReadOnlyObservableCollection.cs
- NetworkCredential.cs
- AmbientValueAttribute.cs
- ScrollViewerAutomationPeer.cs
- TreeIterator.cs
- ConfigViewGenerator.cs
- HttpHandler.cs
- RtfControlWordInfo.cs
- WindowsHyperlink.cs
- TextAdaptor.cs
- XmlSerializableWriter.cs
- ClientUtils.cs
- AssociatedControlConverter.cs
- PermissionListSet.cs
- typedescriptorpermission.cs
- RuntimeConfig.cs
- SqlDataSourceQueryEditorForm.cs
- CodeMemberProperty.cs
- XmlDataSourceNodeDescriptor.cs
- AnyReturnReader.cs
- SubpageParaClient.cs
- _IPv6Address.cs
- UserControlBuildProvider.cs
- DataGridTablesFactory.cs
- DataSourceExpressionCollection.cs
- CharStorage.cs
- TextureBrush.cs
- HtmlControl.cs
- Model3DGroup.cs
- Peer.cs
- HashJoinQueryOperatorEnumerator.cs
- ListViewCommandEventArgs.cs
- srgsitem.cs
- XmlDataImplementation.cs
- WebPartConnectionsCancelEventArgs.cs
- AutomationPeer.cs
- ProgressChangedEventArgs.cs
- TextDecorationUnitValidation.cs
- TokenBasedSet.cs
- SQLGuid.cs
- StreamAsIStream.cs
- NamespaceTable.cs
- OneOfTypeConst.cs
- DynamicMetaObjectBinder.cs
- AssemblyBuilder.cs
- DbTransaction.cs
- TdsParserStaticMethods.cs
- RoutedPropertyChangedEventArgs.cs
- TextProviderWrapper.cs
- StronglyTypedResourceBuilder.cs
- EnumerableWrapperWeakToStrong.cs
- GridViewSelectEventArgs.cs
- BitmapEffectInputData.cs
- RoutedEventHandlerInfo.cs
- DesignerCategoryAttribute.cs