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
- ClientRuntimeConfig.cs
- WindowsIdentity.cs
- LocalizationComments.cs
- AddToCollection.cs
- ObjectToken.cs
- ConfigurationStrings.cs
- BitmapCacheBrush.cs
- InternalException.cs
- _SSPIWrapper.cs
- FileDialogPermission.cs
- SortDescription.cs
- UserCancellationException.cs
- PropagatorResult.cs
- VariableQuery.cs
- AsmxEndpointPickerExtension.cs
- FixUpCollection.cs
- DoubleKeyFrameCollection.cs
- Mappings.cs
- BinaryFormatter.cs
- RegexWriter.cs
- HexParser.cs
- WindowProviderWrapper.cs
- ExceptionHandlersDesigner.cs
- FixedSOMImage.cs
- EntityDataSourceEntitySetNameItem.cs
- SpotLight.cs
- SupportsEventValidationAttribute.cs
- ClientSettingsStore.cs
- SizeF.cs
- SqlWebEventProvider.cs
- PersonalizationDictionary.cs
- MethodCallExpression.cs
- ReadOnlyCollection.cs
- SystemDropShadowChrome.cs
- ComponentChangingEvent.cs
- TextSimpleMarkerProperties.cs
- AuthenticationException.cs
- CmsUtils.cs
- EventSetterHandlerConverter.cs
- PointHitTestParameters.cs
- ButtonField.cs
- RulePatternOps.cs
- RuleAttributes.cs
- WorkflowCommandExtensionItem.cs
- WorkflowControlEndpoint.cs
- Helpers.cs
- CodeEventReferenceExpression.cs
- WebCodeGenerator.cs
- TableLayoutStyleCollection.cs
- DiagnosticTraceSource.cs
- GridViewSelectEventArgs.cs
- DataGridViewTopLeftHeaderCell.cs
- ScriptModule.cs
- DataSourceHelper.cs
- StickyNote.cs
- SystemNetworkInterface.cs
- SecurityChannelFactory.cs
- MemoryMappedViewAccessor.cs
- SqlFlattener.cs
- AuthenticationModuleElementCollection.cs
- UnsafeMethods.cs
- Symbol.cs
- ReliableChannelBinder.cs
- CalendarDataBindingHandler.cs
- InfoCardCryptoHelper.cs
- HttpStreamFormatter.cs
- AddInAdapter.cs
- mediapermission.cs
- PerspectiveCamera.cs
- CacheAxisQuery.cs
- TypeDescriptor.cs
- BidOverLoads.cs
- Soap.cs
- FactoryRecord.cs
- DeclarationUpdate.cs
- RegexCompiler.cs
- MultiPageTextView.cs
- DynamicResourceExtensionConverter.cs
- DbConnectionInternal.cs
- TimeSpanFormat.cs
- SiteMapNodeItemEventArgs.cs
- CriticalExceptions.cs
- TdsParserHelperClasses.cs
- ToolBarOverflowPanel.cs
- SourceInterpreter.cs
- OleDbParameterCollection.cs
- DataGridRowEventArgs.cs
- Base64Stream.cs
- AssertSection.cs
- RegularExpressionValidator.cs
- TraversalRequest.cs
- SID.cs
- ExpressionBuilderCollection.cs
- UnknownBitmapEncoder.cs
- DiffuseMaterial.cs
- TextureBrush.cs
- sqlpipe.cs
- TraceSection.cs
- HandlerBase.cs
- DataContractSet.cs