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
- CoTaskMemHandle.cs
- Substitution.cs
- EntityDataSourceSelectedEventArgs.cs
- StringKeyFrameCollection.cs
- XhtmlTextWriter.cs
- SchemaElementDecl.cs
- SafeCryptContextHandle.cs
- InstancePersistenceContext.cs
- AmbiguousMatchException.cs
- EntityClientCacheKey.cs
- StandardCommands.cs
- WeakReferenceKey.cs
- QueryConverter.cs
- BuildProvider.cs
- RouteParameter.cs
- XmlPreloadedResolver.cs
- UInt16.cs
- ElementHost.cs
- Evaluator.cs
- DaylightTime.cs
- InputManager.cs
- PropertyGeneratedEventArgs.cs
- AnnotationHighlightLayer.cs
- EntityConnection.cs
- HttpListenerException.cs
- TimeEnumHelper.cs
- CrossSiteScriptingValidation.cs
- SystemPens.cs
- TextElementCollection.cs
- TextEffectResolver.cs
- ConstraintCollection.cs
- XmlReflectionMember.cs
- SamlNameIdentifierClaimResource.cs
- LayoutEditorPart.cs
- NameValueCollection.cs
- TimeIntervalCollection.cs
- UpdatePanelControlTrigger.cs
- TransformValueSerializer.cs
- WebResponse.cs
- EntityDataSourceSelectingEventArgs.cs
- ResolveNameEventArgs.cs
- EventMappingSettingsCollection.cs
- PeerTransportElement.cs
- WsdlServiceChannelBuilder.cs
- EasingKeyFrames.cs
- XmlSchemaInclude.cs
- EmptyEnumerator.cs
- PropertyTabChangedEvent.cs
- Soap12ProtocolImporter.cs
- Debugger.cs
- HttpProcessUtility.cs
- WindowsListViewGroup.cs
- TypeReference.cs
- UserNamePasswordValidator.cs
- HttpCachePolicy.cs
- RepeaterItemCollection.cs
- ProfileBuildProvider.cs
- XmlMtomWriter.cs
- XmlSiteMapProvider.cs
- XmlMapping.cs
- KeyValuePairs.cs
- HandlerFactoryCache.cs
- UpDownEvent.cs
- UserControlParser.cs
- DockPatternIdentifiers.cs
- ExtentCqlBlock.cs
- CheckBox.cs
- Menu.cs
- Matrix3D.cs
- ApplicationFileParser.cs
- ProfilePropertySettings.cs
- PassportAuthentication.cs
- metadatamappinghashervisitor.cs
- QuadraticBezierSegment.cs
- MarginCollapsingState.cs
- SafeViewOfFileHandle.cs
- HtmlForm.cs
- LocalizationParserHooks.cs
- namescope.cs
- AssociationEndMember.cs
- TemplateBindingExtensionConverter.cs
- XslException.cs
- XmlAnyAttributeAttribute.cs
- IncrementalReadDecoders.cs
- SQLBinary.cs
- QueryOpcode.cs
- MergePropertyDescriptor.cs
- CompilationPass2Task.cs
- DataContractAttribute.cs
- BuildProviderAppliesToAttribute.cs
- MenuScrollingVisibilityConverter.cs
- MappingMetadataHelper.cs
- WinEventQueueItem.cs
- SessionStateModule.cs
- SqlDataSourceConfigureFilterForm.cs
- COAUTHINFO.cs
- ProfessionalColorTable.cs
- printdlgexmarshaler.cs
- HTMLTextWriter.cs
- DataContext.cs