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
- TypeUtils.cs
- StaticTextPointer.cs
- TextModifierScope.cs
- DtdParser.cs
- FormsAuthenticationTicket.cs
- ManagementBaseObject.cs
- SqlConnectionPoolGroupProviderInfo.cs
- WinInetCache.cs
- HttpWebRequest.cs
- DataServiceSaveChangesEventArgs.cs
- Parser.cs
- SiteMembershipCondition.cs
- XPathSingletonIterator.cs
- NameValuePair.cs
- Logging.cs
- SiteMapNodeCollection.cs
- TraceListeners.cs
- GridProviderWrapper.cs
- SelectingProviderEventArgs.cs
- NodeFunctions.cs
- CreateRefExpr.cs
- InvalidTimeZoneException.cs
- BindingExpressionBase.cs
- StdValidatorsAndConverters.cs
- ObjectPersistData.cs
- CompareValidator.cs
- XpsResourcePolicy.cs
- DllHostInitializer.cs
- StrongName.cs
- EncoderParameter.cs
- TriggerAction.cs
- CollectionChangeEventArgs.cs
- ObfuscateAssemblyAttribute.cs
- IndexOutOfRangeException.cs
- DataPager.cs
- WindowsTooltip.cs
- GeneralTransform3D.cs
- GiveFeedbackEventArgs.cs
- PolicyException.cs
- BehaviorEditorPart.cs
- SerializationInfo.cs
- iisPickupDirectory.cs
- Convert.cs
- SqlClientMetaDataCollectionNames.cs
- FileReader.cs
- SynchronizationContext.cs
- EventListener.cs
- MaterialGroup.cs
- DataGridCellsPanel.cs
- PeerDefaultCustomResolverClient.cs
- WebBrowserContainer.cs
- StylusPointDescription.cs
- CheckBox.cs
- RuleSettingsCollection.cs
- ToolBarButtonClickEvent.cs
- CompositeKey.cs
- ThreadPool.cs
- LinkLabel.cs
- ProcessProtocolHandler.cs
- PermissionAttributes.cs
- AspProxy.cs
- codemethodreferenceexpression.cs
- DataGridViewRowHeaderCell.cs
- MemberHolder.cs
- TabControlEvent.cs
- TreeViewImageKeyConverter.cs
- ReadOnlyDataSource.cs
- AccessControlList.cs
- InvalidOleVariantTypeException.cs
- MemoryRecordBuffer.cs
- LinqDataSourceDisposeEventArgs.cs
- WebPartRestoreVerb.cs
- UpdateException.cs
- EventItfInfo.cs
- IgnoreFileBuildProvider.cs
- MultiSelectRootGridEntry.cs
- Rfc2898DeriveBytes.cs
- EmbeddedMailObjectsCollection.cs
- RegionData.cs
- ResourceDictionary.cs
- ToolbarAUtomationPeer.cs
- ConstructorNeedsTagAttribute.cs
- IItemProperties.cs
- NativeMethods.cs
- SettingsPropertyNotFoundException.cs
- WebScriptServiceHost.cs
- AtomEntry.cs
- XmlWhitespace.cs
- ProxyElement.cs
- DecoderNLS.cs
- HttpDebugHandler.cs
- ExitEventArgs.cs
- ValidatedControlConverter.cs
- WebMessageEncoderFactory.cs
- FormsAuthenticationModule.cs
- XmlArrayItemAttributes.cs
- FloaterParagraph.cs
- IndexedString.cs
- XPathNodeIterator.cs
- XmlSchemaSimpleTypeList.cs