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
- UnicodeEncoding.cs
- SchemaCollectionCompiler.cs
- StrokeNodeEnumerator.cs
- DeclarativeCatalogPart.cs
- PositiveTimeSpanValidator.cs
- Stylesheet.cs
- IsolatedStorageFileStream.cs
- SchemaMerger.cs
- RSAPKCS1SignatureDeformatter.cs
- EmptyStringExpandableObjectConverter.cs
- GenericParameterDataContract.cs
- Int32Storage.cs
- UIAgentAsyncBeginRequest.cs
- HttpModuleActionCollection.cs
- VectorCollectionConverter.cs
- HttpDictionary.cs
- ProfilePropertyMetadata.cs
- EncoderFallback.cs
- DataGridViewCellStyleBuilderDialog.cs
- CodeCompileUnit.cs
- FileUtil.cs
- newitemfactory.cs
- BasicExpandProvider.cs
- basevalidator.cs
- BuildResultCache.cs
- InputReportEventArgs.cs
- MimeMultiPart.cs
- CounterCreationDataConverter.cs
- ClientSideProviderDescription.cs
- FontConverter.cs
- HwndSubclass.cs
- CacheDependency.cs
- BooleanFacetDescriptionElement.cs
- CheckBoxDesigner.cs
- MemberPathMap.cs
- MaskedTextProvider.cs
- FileInfo.cs
- BitmapMetadata.cs
- VirtualPathExtension.cs
- DeviceSpecificChoice.cs
- PlainXmlSerializer.cs
- TextServicesDisplayAttributePropertyRanges.cs
- PageParserFilter.cs
- OdbcStatementHandle.cs
- ActivitySurrogate.cs
- LabelEditEvent.cs
- URIFormatException.cs
- Evaluator.cs
- MetadataItem_Static.cs
- DrawingBrush.cs
- CustomWebEventKey.cs
- StringBuilder.cs
- UnknownBitmapEncoder.cs
- XmlSerializerAssemblyAttribute.cs
- CallContext.cs
- PersistenceProviderDirectory.cs
- TrimSurroundingWhitespaceAttribute.cs
- Function.cs
- BooleanExpr.cs
- SelectedGridItemChangedEvent.cs
- QueryOutputWriter.cs
- shaperfactoryquerycacheentry.cs
- PersistenceTypeAttribute.cs
- Cursor.cs
- ResourceExpressionBuilder.cs
- EntityKey.cs
- Triplet.cs
- DataContract.cs
- ServerIdentity.cs
- XmlUTF8TextWriter.cs
- Drawing.cs
- ControlPersister.cs
- WindowsRichEdit.cs
- NGCSerializerAsync.cs
- BackgroundFormatInfo.cs
- OpCopier.cs
- DbParameterCollectionHelper.cs
- GridItemPattern.cs
- Queue.cs
- ActiveXHost.cs
- EventTrigger.cs
- LinqDataSourceDeleteEventArgs.cs
- ItemCollection.cs
- WorkflowInstanceTerminatedRecord.cs
- Pkcs7Recipient.cs
- TableLayoutStyle.cs
- SafeViewOfFileHandle.cs
- DomainLiteralReader.cs
- UndirectedGraph.cs
- ValueChangedEventManager.cs
- SeparatorAutomationPeer.cs
- EventsTab.cs
- XamlSerializer.cs
- EntityDataSourceDataSelection.cs
- XmlSchemaAppInfo.cs
- AppSettingsSection.cs
- StickyNoteAnnotations.cs
- BaseAsyncResult.cs
- XmlSchemaAppInfo.cs
- TdsParserSessionPool.cs