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
- TagMapCollection.cs
- QuadraticBezierSegment.cs
- SystemResourceHost.cs
- PerformanceCounterCategory.cs
- DataPagerFieldCommandEventArgs.cs
- HtmlButton.cs
- BufferModeSettings.cs
- PreloadedPackages.cs
- DBConnectionString.cs
- EntityDataSourceWizardForm.cs
- ParallelDesigner.cs
- EntityViewContainer.cs
- CorruptingExceptionCommon.cs
- InputScope.cs
- DataServiceClientException.cs
- DbProviderFactory.cs
- EditorZoneDesigner.cs
- UriParserTemplates.cs
- DataContractSerializerSection.cs
- IRCollection.cs
- CellTreeNodeVisitors.cs
- ComponentRenameEvent.cs
- DisplayInformation.cs
- HybridObjectCache.cs
- AutomationIdentifierGuids.cs
- VisualTarget.cs
- UriTemplateDispatchFormatter.cs
- EntityDataSourceContextCreatedEventArgs.cs
- RotateTransform.cs
- MatrixTransform3D.cs
- ZipIOLocalFileHeader.cs
- HuffModule.cs
- Base64Decoder.cs
- ClientBuildManager.cs
- SqlComparer.cs
- FixedDocument.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- XmlEnumAttribute.cs
- ReadOnlyDataSource.cs
- TextBoxAutoCompleteSourceConverter.cs
- HttpCacheVary.cs
- ListBoxItemAutomationPeer.cs
- HttpCachePolicy.cs
- RuntimeComponentFilter.cs
- RotateTransform.cs
- HttpProfileBase.cs
- _UriTypeConverter.cs
- Currency.cs
- TableAutomationPeer.cs
- AssemblyHash.cs
- KerberosSecurityTokenAuthenticator.cs
- EdmScalarPropertyAttribute.cs
- OrderingExpression.cs
- GlobalEventManager.cs
- FormViewDeleteEventArgs.cs
- HttpCacheVary.cs
- SkewTransform.cs
- Error.cs
- MappingItemCollection.cs
- XmlSchemaComplexType.cs
- InProcStateClientManager.cs
- FormsAuthenticationConfiguration.cs
- XmlDomTextWriter.cs
- ThicknessAnimationUsingKeyFrames.cs
- SectionVisual.cs
- EdmError.cs
- RC2CryptoServiceProvider.cs
- DbProviderManifest.cs
- HandlerBase.cs
- ServiceModelActivity.cs
- FragmentQueryProcessor.cs
- DefaultBinder.cs
- Sql8ExpressionRewriter.cs
- ValueChangedEventManager.cs
- DataGridTable.cs
- InvalidWorkflowException.cs
- BoundPropertyEntry.cs
- mongolianshape.cs
- CaseCqlBlock.cs
- Command.cs
- Directory.cs
- SafeUserTokenHandle.cs
- ProfilePropertyNameValidator.cs
- SplitterEvent.cs
- TargetParameterCountException.cs
- MinimizableAttributeTypeConverter.cs
- WindowsPrincipal.cs
- CreateUserWizardAutoFormat.cs
- EntityDataSourceViewSchema.cs
- ProfileGroupSettings.cs
- DelegatingStream.cs
- GlobalProxySelection.cs
- StylusTip.cs
- ListViewGroupConverter.cs
- ServiceNameElementCollection.cs
- NameValueSectionHandler.cs
- BaseTemplateParser.cs
- CheckBox.cs
- ConsoleKeyInfo.cs
- DecimalAnimationUsingKeyFrames.cs