Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- baseaxisquery.cs
- DirectoryLocalQuery.cs
- ArrayListCollectionBase.cs
- VBIdentifierName.cs
- SchemaElementDecl.cs
- Variant.cs
- Version.cs
- VisualTransition.cs
- Win32.cs
- ZoneIdentityPermission.cs
- AnonymousIdentificationModule.cs
- SyntaxCheck.cs
- PriorityQueue.cs
- SessionEndedEventArgs.cs
- SessionIDManager.cs
- TrustManagerPromptUI.cs
- Int32CollectionConverter.cs
- XpsFont.cs
- HtmlButton.cs
- DetailsViewPagerRow.cs
- ValidationRule.cs
- PublisherMembershipCondition.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ClientSettings.cs
- BaseTemplateCodeDomTreeGenerator.cs
- nulltextcontainer.cs
- XmlRootAttribute.cs
- InvalidProgramException.cs
- WhitespaceRuleLookup.cs
- HttpCacheParams.cs
- TabControl.cs
- PeerTransportListenAddressConverter.cs
- SessionIDManager.cs
- GlobalDataBindingHandler.cs
- QueryPageSettingsEventArgs.cs
- EventWaitHandle.cs
- TemplatedMailWebEventProvider.cs
- DataGridAddNewRow.cs
- TextFormattingConverter.cs
- UnmanagedMemoryStreamWrapper.cs
- NGCPageContentCollectionSerializerAsync.cs
- HTMLTextWriter.cs
- UnsafeNativeMethods.cs
- GregorianCalendar.cs
- GridViewDeleteEventArgs.cs
- Identifier.cs
- SubqueryRules.cs
- TextFormatterHost.cs
- NumberFormatInfo.cs
- IFlowDocumentViewer.cs
- TextEvent.cs
- TagPrefixAttribute.cs
- FlowDocumentFormatter.cs
- SerializerWriterEventHandlers.cs
- DataGridViewToolTip.cs
- CalendarDayButton.cs
- SessionEndingCancelEventArgs.cs
- MouseEvent.cs
- SafeReversePInvokeHandle.cs
- PasswordRecoveryDesigner.cs
- TraceRecord.cs
- ExpressionStringBuilder.cs
- LightweightCodeGenerator.cs
- UrlAuthFailedErrorFormatter.cs
- ToolStripKeyboardHandlingService.cs
- DataGridViewUtilities.cs
- RemotingSurrogateSelector.cs
- XhtmlBasicPanelAdapter.cs
- RecognizerStateChangedEventArgs.cs
- JapaneseCalendar.cs
- FormsAuthenticationTicket.cs
- ReferencedAssemblyResolver.cs
- ColumnMapTranslator.cs
- VectorAnimation.cs
- ColorMatrix.cs
- IOThreadTimer.cs
- DataServiceKeyAttribute.cs
- DependencyPropertyDescriptor.cs
- unsafenativemethodsother.cs
- BlurBitmapEffect.cs
- DashStyle.cs
- MenuScrollingVisibilityConverter.cs
- MainMenu.cs
- TimeSpanSecondsConverter.cs
- InternalUserCancelledException.cs
- DispatcherEventArgs.cs
- MediaPlayerState.cs
- ZipIOExtraFieldZip64Element.cs
- QilGeneratorEnv.cs
- StringDictionary.cs
- FixedBufferAttribute.cs
- TemplateAction.cs
- CodeDelegateInvokeExpression.cs
- InputLanguage.cs
- SqlClientMetaDataCollectionNames.cs
- DesignBinding.cs
- listitem.cs
- DataBindingList.cs
- DeobfuscatingStream.cs
- ListBase.cs