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
- FamilyMap.cs
- PerspectiveCamera.cs
- ActiveXHost.cs
- DocumentApplication.cs
- CharacterString.cs
- NavigationCommands.cs
- PromptEventArgs.cs
- SamlSubjectStatement.cs
- MemberNameValidator.cs
- ISessionStateStore.cs
- DecimalFormatter.cs
- SoapTypeAttribute.cs
- RegisteredHiddenField.cs
- Viewport2DVisual3D.cs
- HttpApplication.cs
- ClrPerspective.cs
- isolationinterop.cs
- SafeNativeMethods.cs
- Stroke2.cs
- Point3DKeyFrameCollection.cs
- ImageButton.cs
- TabletDeviceInfo.cs
- AsmxEndpointPickerExtension.cs
- XPathMultyIterator.cs
- ParameterToken.cs
- BamlLocalizableResource.cs
- OrderedEnumerableRowCollection.cs
- TrackingExtract.cs
- TextModifierScope.cs
- AffineTransform3D.cs
- HwndHostAutomationPeer.cs
- EndEvent.cs
- DropDownList.cs
- DataGridViewCellMouseEventArgs.cs
- TypedReference.cs
- ProfileManager.cs
- Renderer.cs
- OleDbEnumerator.cs
- SqlTopReducer.cs
- CodeCompiler.cs
- LayoutUtils.cs
- BrowserCapabilitiesCompiler.cs
- Set.cs
- VariableExpressionConverter.cs
- SelectionEditor.cs
- DocumentAutomationPeer.cs
- TreeNodeCollection.cs
- IPGlobalProperties.cs
- Tool.cs
- MarshalDirectiveException.cs
- TypefaceMap.cs
- UnaryNode.cs
- GridViewColumnHeaderAutomationPeer.cs
- RIPEMD160.cs
- HttpCapabilitiesEvaluator.cs
- RequestStatusBarUpdateEventArgs.cs
- Stopwatch.cs
- PlaceHolder.cs
- XmlSchemaRedefine.cs
- XmlIterators.cs
- FixedHyperLink.cs
- HMACSHA256.cs
- TrustLevel.cs
- TrackingParameters.cs
- SizeChangedEventArgs.cs
- WebPartDisplayModeCollection.cs
- DLinqTableProvider.cs
- ToolStripItemTextRenderEventArgs.cs
- DefaultBinder.cs
- SingleConverter.cs
- XmlSiteMapProvider.cs
- ConditionedDesigner.cs
- WorkItem.cs
- DefaultValidator.cs
- AffineTransform3D.cs
- InstanceDataCollection.cs
- RuntimeWrappedException.cs
- ResponseStream.cs
- MinimizableAttributeTypeConverter.cs
- AssociatedControlConverter.cs
- Propagator.Evaluator.cs
- Separator.cs
- DeferredRunTextReference.cs
- BindStream.cs
- TextElementEditingBehaviorAttribute.cs
- ObjectView.cs
- BinaryConverter.cs
- StringValueConverter.cs
- AvtEvent.cs
- SpinWait.cs
- GPPOINT.cs
- WebPartZoneBaseDesigner.cs
- Mappings.cs
- FamilyTypeface.cs
- CodeSnippetStatement.cs
- httpserverutility.cs
- StringValidatorAttribute.cs
- DataList.cs
- TemplateField.cs
- UpdateRecord.cs