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
- RegexWorker.cs
- WebPartManager.cs
- FontUnitConverter.cs
- CodeStatement.cs
- XmlSchemas.cs
- IOException.cs
- SafeTimerHandle.cs
- DataGridViewCellValidatingEventArgs.cs
- SqlUserDefinedTypeAttribute.cs
- WindowInteropHelper.cs
- NullNotAllowedCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- BuildProviderInstallComponent.cs
- GeneralTransform.cs
- SmtpReplyReader.cs
- LoginView.cs
- SocketStream.cs
- RegexNode.cs
- ConfigXmlAttribute.cs
- CodeGeneratorAttribute.cs
- DataMemberAttribute.cs
- StorageConditionPropertyMapping.cs
- ItemList.cs
- TextBlockAutomationPeer.cs
- XmlTypeMapping.cs
- basecomparevalidator.cs
- ReferencedAssemblyResolver.cs
- CommunicationObjectManager.cs
- ArcSegment.cs
- DataPagerField.cs
- CompleteWizardStep.cs
- CookieProtection.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- StorageAssociationSetMapping.cs
- TableHeaderCell.cs
- StreamInfo.cs
- FontFaceLayoutInfo.cs
- DocumentViewerBaseAutomationPeer.cs
- ProgressBarRenderer.cs
- ActivityXRefConverter.cs
- XPathNavigatorKeyComparer.cs
- WindowsTooltip.cs
- DebugView.cs
- ConfigurationElement.cs
- SelfIssuedAuthAsymmetricKey.cs
- _SSPISessionCache.cs
- Freezable.cs
- WorkerRequest.cs
- DateTimeConstantAttribute.cs
- SamlAdvice.cs
- ConfigurationElement.cs
- UIInitializationException.cs
- SHA256Managed.cs
- UserPreferenceChangedEventArgs.cs
- UserPersonalizationStateInfo.cs
- ClientTarget.cs
- ListCollectionView.cs
- Int32CollectionConverter.cs
- ReflectionPermission.cs
- Merger.cs
- Debug.cs
- XXXOnTypeBuilderInstantiation.cs
- TrustLevel.cs
- ScriptServiceAttribute.cs
- DiffuseMaterial.cs
- GenericPrincipal.cs
- HtmlButton.cs
- CachedFontFace.cs
- TextHidden.cs
- listitem.cs
- SessionStateUtil.cs
- StandardCommands.cs
- Rotation3DKeyFrameCollection.cs
- StateMachine.cs
- Operator.cs
- SimpleBitVector32.cs
- Propagator.ExtentPlaceholderCreator.cs
- EmptyEnumerator.cs
- Model3D.cs
- PublisherMembershipCondition.cs
- NavigateEvent.cs
- ToolboxItemFilterAttribute.cs
- MetadataSource.cs
- XmlException.cs
- XmlCDATASection.cs
- MarkupObject.cs
- CannotUnloadAppDomainException.cs
- __Filters.cs
- RelationshipDetailsRow.cs
- FloaterParagraph.cs
- IntSecurity.cs
- TypeNameConverter.cs
- ContentPathSegment.cs
- UserCancellationException.cs
- CommandPlan.cs
- CompositeClientFormatter.cs
- XsltLibrary.cs
- FileNotFoundException.cs
- StrokeNode.cs
- MultiView.cs