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
- SelectedDatesCollection.cs
- RenamedEventArgs.cs
- XmlSchemaProviderAttribute.cs
- ObjectDisposedException.cs
- LinkTarget.cs
- WebControl.cs
- XmlArrayAttribute.cs
- PrimitiveXmlSerializers.cs
- XmlSiteMapProvider.cs
- ContainerSelectorActiveEvent.cs
- SelectionItemProviderWrapper.cs
- LifetimeServices.cs
- PerformanceCountersElement.cs
- IndexedSelectQueryOperator.cs
- HMACSHA256.cs
- SchemaElementDecl.cs
- Material.cs
- ResourceReferenceExpression.cs
- JsonStringDataContract.cs
- ItemPager.cs
- wgx_sdk_version.cs
- DataGridTable.cs
- ClrProviderManifest.cs
- ReflectionHelper.cs
- Geometry3D.cs
- WpfXamlType.cs
- WinInetCache.cs
- HttpCachePolicy.cs
- Pair.cs
- CodePageUtils.cs
- Pair.cs
- ExpandoClass.cs
- ellipse.cs
- MergeFilterQuery.cs
- BlurEffect.cs
- LinqDataSourceDeleteEventArgs.cs
- oledbmetadatacolumnnames.cs
- TextSpan.cs
- counter.cs
- StreamAsIStream.cs
- ToolZone.cs
- ProxyWebPartConnectionCollection.cs
- BypassElement.cs
- ComboBoxDesigner.cs
- ExtensionFile.cs
- ConfigurationElementCollection.cs
- EventItfInfo.cs
- SettingsSavedEventArgs.cs
- ClientRuntimeConfig.cs
- MaskedTextProvider.cs
- GridViewRow.cs
- ParseNumbers.cs
- FieldNameLookup.cs
- DataGridViewCellStyleConverter.cs
- ListViewItem.cs
- OdbcErrorCollection.cs
- SiteMapDataSource.cs
- LocatorBase.cs
- UIntPtr.cs
- SchemaReference.cs
- IndexedString.cs
- RemotingServices.cs
- SmtpDigestAuthenticationModule.cs
- WebPartDeleteVerb.cs
- SinglePageViewer.cs
- ReflectionUtil.cs
- StatusBarItemAutomationPeer.cs
- SQLMoney.cs
- QueryAccessibilityHelpEvent.cs
- SchemaDeclBase.cs
- MSAAWinEventWrap.cs
- AstNode.cs
- NativeMethodsCLR.cs
- DummyDataSource.cs
- GlobalProxySelection.cs
- UnsafeNativeMethods.cs
- ByteStreamGeometryContext.cs
- OwnerDrawPropertyBag.cs
- ContextDataSource.cs
- DataShape.cs
- BaseResourcesBuildProvider.cs
- DecimalStorage.cs
- TreeViewHitTestInfo.cs
- UIElement3DAutomationPeer.cs
- BadImageFormatException.cs
- TransformedBitmap.cs
- UIntPtr.cs
- SystemColorTracker.cs
- ListViewAutomationPeer.cs
- InternalConfigSettingsFactory.cs
- LinkButton.cs
- HtmlObjectListAdapter.cs
- DataServiceQuery.cs
- PageCodeDomTreeGenerator.cs
- BrowserCapabilitiesFactoryBase.cs
- SoapReflectionImporter.cs
- PlainXmlSerializer.cs
- Sorting.cs
- PageParser.cs
- InvokePatternIdentifiers.cs