Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / FileSystemEventArgs.cs / 1305376 / 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
- StrongNameHelpers.cs
- BufferModesCollection.cs
- CaseStatementSlot.cs
- BitmapEffectDrawingContextState.cs
- EncodingDataItem.cs
- SimpleBitVector32.cs
- DataGridHeaderBorder.cs
- StructureChangedEventArgs.cs
- SerializationException.cs
- TextEditorCharacters.cs
- TileModeValidation.cs
- ProfessionalColors.cs
- RemoteCryptoDecryptRequest.cs
- TeredoHelper.cs
- ValidationPropertyAttribute.cs
- WebPartManagerInternals.cs
- XmlSchemaObjectCollection.cs
- OLEDB_Enum.cs
- SoapTypeAttribute.cs
- InvalidProgramException.cs
- LongTypeConverter.cs
- DataGridViewColumnCollection.cs
- ArithmeticException.cs
- Camera.cs
- LogArchiveSnapshot.cs
- Renderer.cs
- SqlDataSourceConnectionPanel.cs
- BasicHttpSecurityElement.cs
- WithStatement.cs
- AppSettingsExpressionBuilder.cs
- MessageEncodingBindingElement.cs
- Calendar.cs
- SerialStream.cs
- Selector.cs
- DependencyPropertyKey.cs
- TableLayoutSettings.cs
- ConfigErrorGlyph.cs
- HijriCalendar.cs
- PropertyNames.cs
- RuleSettings.cs
- StringValidator.cs
- Attributes.cs
- TypeConverterAttribute.cs
- DataRelation.cs
- PriorityRange.cs
- PrinterSettings.cs
- DBSchemaTable.cs
- FigureParaClient.cs
- Shape.cs
- SelectedDatesCollection.cs
- NotifyIcon.cs
- DPCustomTypeDescriptor.cs
- CatalogPart.cs
- CodeCastExpression.cs
- MemberAccessException.cs
- XmlSchemaGroup.cs
- TemplateBamlRecordReader.cs
- PrintingPermissionAttribute.cs
- nulltextnavigator.cs
- FontStretchConverter.cs
- GridViewHeaderRowPresenter.cs
- BindingExpressionUncommonField.cs
- MarkupExtensionSerializer.cs
- CopyNodeSetAction.cs
- Point3D.cs
- AnnotationDocumentPaginator.cs
- ButtonAutomationPeer.cs
- ComplexPropertyEntry.cs
- DesignerTransaction.cs
- ObjectQueryExecutionPlan.cs
- PrintingPermissionAttribute.cs
- EntityDataSourceDataSelectionPanel.cs
- RegexCaptureCollection.cs
- QuotedPrintableStream.cs
- SourceLineInfo.cs
- Parser.cs
- Vector3DKeyFrameCollection.cs
- AxisAngleRotation3D.cs
- PnrpPeerResolver.cs
- DNS.cs
- TerminatorSinks.cs
- ToolStripControlHost.cs
- loginstatus.cs
- NestPullup.cs
- XmlNamespaceManager.cs
- RootBrowserWindowAutomationPeer.cs
- DataGridViewCellStateChangedEventArgs.cs
- DeploymentExceptionMapper.cs
- FlowLayoutSettings.cs
- TreeView.cs
- CreatingCookieEventArgs.cs
- GenericAuthenticationEventArgs.cs
- Int32AnimationBase.cs
- NamespaceExpr.cs
- GeometryConverter.cs
- DefaultSerializationProviderAttribute.cs
- SettingsAttributes.cs
- BasicViewGenerator.cs
- TypedDataSetSchemaImporterExtension.cs
- ExplicitDiscriminatorMap.cs