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
- XmlReflectionMember.cs
- TransactionsSectionGroup.cs
- DbDataSourceEnumerator.cs
- UrlPath.cs
- _ShellExpression.cs
- SqlBuilder.cs
- Identity.cs
- MemberRestriction.cs
- PaintEvent.cs
- XhtmlConformanceSection.cs
- ReversePositionQuery.cs
- HtmlUtf8RawTextWriter.cs
- XmlDataDocument.cs
- TCPClient.cs
- ArraySegment.cs
- NavigationFailedEventArgs.cs
- WebEventCodes.cs
- safex509handles.cs
- TimeSpanSecondsConverter.cs
- InspectionWorker.cs
- Point4D.cs
- CodeTypeDelegate.cs
- UnsafeNativeMethods.cs
- ProcessHost.cs
- TraceHandlerErrorFormatter.cs
- NullableLongAverageAggregationOperator.cs
- SpnegoTokenAuthenticator.cs
- SecurityPermission.cs
- DrawingState.cs
- DataTableClearEvent.cs
- DecoderNLS.cs
- SetStateEventArgs.cs
- CodeArrayCreateExpression.cs
- OleDbParameterCollection.cs
- DispatcherExceptionEventArgs.cs
- PeerPresenceInfo.cs
- NativeObjectSecurity.cs
- ImplicitInputBrush.cs
- ConfigXmlWhitespace.cs
- XmlTextReaderImpl.cs
- AsymmetricSignatureDeformatter.cs
- DataBinder.cs
- _LocalDataStore.cs
- TimelineGroup.cs
- ObjectResult.cs
- Link.cs
- DataGridBeginningEditEventArgs.cs
- FunctionQuery.cs
- UserNamePasswordValidationMode.cs
- CustomWebEventKey.cs
- AuthenticatingEventArgs.cs
- ConnectionsZone.cs
- DBCommand.cs
- ActivityBuilderXamlWriter.cs
- CheckoutException.cs
- DataErrorValidationRule.cs
- XmlChildEnumerator.cs
- EndOfStreamException.cs
- StorageTypeMapping.cs
- ClusterUtils.cs
- UrlMappingCollection.cs
- ConnectionProviderAttribute.cs
- CacheOutputQuery.cs
- WasHostedComPlusFactory.cs
- NetCodeGroup.cs
- DirectoryObjectSecurity.cs
- HttpPostedFile.cs
- ProfileSection.cs
- DateTimeConverter2.cs
- XmlMtomWriter.cs
- XmlValidatingReader.cs
- NamedObjectList.cs
- ControlPropertyNameConverter.cs
- CompiledIdentityConstraint.cs
- TableCellCollection.cs
- MulticastNotSupportedException.cs
- TabItemWrapperAutomationPeer.cs
- _ContextAwareResult.cs
- StringUtil.cs
- MenuItemStyleCollection.cs
- ZipIOCentralDirectoryFileHeader.cs
- RenameRuleObjectDialog.Designer.cs
- RayHitTestParameters.cs
- AddToCollection.cs
- FormsAuthenticationEventArgs.cs
- TreeWalkHelper.cs
- UIServiceHelper.cs
- BindingValueChangedEventArgs.cs
- HierarchicalDataTemplate.cs
- RelationshipEndMember.cs
- TimestampInformation.cs
- LinkLabelLinkClickedEvent.cs
- FilteredAttributeCollection.cs
- OleDbRowUpdatingEvent.cs
- MarkedHighlightComponent.cs
- ASCIIEncoding.cs
- RenderDataDrawingContext.cs
- TableHeaderCell.cs
- NetworkInterface.cs
- ArglessEventHandlerProxy.cs