Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }/// 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
- ObjectDataSourceSelectingEventArgs.cs
- RowType.cs
- CacheMemory.cs
- PagerStyle.cs
- ItemsControl.cs
- GregorianCalendarHelper.cs
- DiscreteKeyFrames.cs
- MD5CryptoServiceProvider.cs
- ImportOptions.cs
- SqlDataReaderSmi.cs
- SqlRowUpdatingEvent.cs
- APCustomTypeDescriptor.cs
- TreeWalker.cs
- ListView.cs
- StringPropertyBuilder.cs
- DbConnectionPool.cs
- SourceFileBuildProvider.cs
- GatewayIPAddressInformationCollection.cs
- DefinitionBase.cs
- ProcessStartInfo.cs
- ParserHooks.cs
- MethodInfo.cs
- SymbolEqualComparer.cs
- Ipv6Element.cs
- ClaimTypeRequirement.cs
- COM2IDispatchConverter.cs
- fixedPageContentExtractor.cs
- XPathQilFactory.cs
- AttachedPropertyBrowsableAttribute.cs
- StorageScalarPropertyMapping.cs
- CSharpCodeProvider.cs
- OletxTransactionManager.cs
- DBPropSet.cs
- ProtocolImporter.cs
- DependencyPropertyAttribute.cs
- _ProxyChain.cs
- OdbcConnectionOpen.cs
- SqlServer2KCompatibilityAnnotation.cs
- KeyGestureConverter.cs
- FontSource.cs
- RecognizedWordUnit.cs
- AxisAngleRotation3D.cs
- Helpers.cs
- SQLInt32Storage.cs
- EncoderParameter.cs
- TextChangedEventArgs.cs
- OleDbPermission.cs
- EntityClientCacheEntry.cs
- MailBnfHelper.cs
- UserNamePasswordValidator.cs
- TableChangeProcessor.cs
- PolyBezierSegment.cs
- WindowsUpDown.cs
- HtmlShimManager.cs
- ProcessModuleCollection.cs
- LogRestartAreaEnumerator.cs
- BitmapMetadataBlob.cs
- CfgSemanticTag.cs
- NullableIntSumAggregationOperator.cs
- AssertSection.cs
- QueryOperationResponseOfT.cs
- TableLayoutPanelDesigner.cs
- DataMisalignedException.cs
- CharConverter.cs
- RegisteredExpandoAttribute.cs
- webproxy.cs
- MultiSelectRootGridEntry.cs
- WebSysDescriptionAttribute.cs
- CultureSpecificCharacterBufferRange.cs
- Utils.cs
- TextEditorTables.cs
- SecurityTokenException.cs
- ECDsaCng.cs
- SpeechSeg.cs
- _StreamFramer.cs
- SafeTimerHandle.cs
- DataGridViewHeaderCell.cs
- TransactionalPackage.cs
- LogWriteRestartAreaAsyncResult.cs
- FormConverter.cs
- SubclassTypeValidatorAttribute.cs
- ReadOnlyKeyedCollection.cs
- BrushConverter.cs
- SingleObjectCollection.cs
- FixedDocumentSequencePaginator.cs
- TypeKeyValue.cs
- Button.cs
- FormsAuthenticationUserCollection.cs
- securitymgrsite.cs
- Int32.cs
- __FastResourceComparer.cs
- SqlTriggerContext.cs
- ListItemViewControl.cs
- NestedContainer.cs
- PackWebResponse.cs
- RegexParser.cs
- DeclaredTypeValidatorAttribute.cs
- WMIGenerator.cs
- Interlocked.cs
- PixelFormats.cs