Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CompressionTransform.cs
- StrokeNodeEnumerator.cs
- QuaternionAnimationUsingKeyFrames.cs
- QilStrConcatenator.cs
- DatagridviewDisplayedBandsData.cs
- RawStylusActions.cs
- EventLogPermissionEntry.cs
- AsyncDataRequest.cs
- Deflater.cs
- MouseActionValueSerializer.cs
- PropertyMapper.cs
- TransactionManagerProxy.cs
- ColorMatrix.cs
- Pair.cs
- Content.cs
- SecondaryViewProvider.cs
- ProfilePropertyMetadata.cs
- HWStack.cs
- SpotLight.cs
- EmptyEnumerator.cs
- Int64AnimationUsingKeyFrames.cs
- HtmlUtf8RawTextWriter.cs
- SecurityToken.cs
- WebReferencesBuildProvider.cs
- DataGridViewTextBoxEditingControl.cs
- ResourceManager.cs
- SqlProfileProvider.cs
- ConfigurationValidatorBase.cs
- SQLDouble.cs
- DelayedRegex.cs
- Calendar.cs
- ToolStripCodeDomSerializer.cs
- QuaternionKeyFrameCollection.cs
- ColumnMapTranslator.cs
- TextModifierScope.cs
- HTMLTagNameToTypeMapper.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- MetadataCollection.cs
- KnownTypesProvider.cs
- SqlDataSourceSummaryPanel.cs
- UIPropertyMetadata.cs
- BuilderInfo.cs
- CodeExpressionRuleDeclaration.cs
- SymbolEqualComparer.cs
- CryptoApi.cs
- TextCompositionManager.cs
- SmiTypedGetterSetter.cs
- TextTreeRootTextBlock.cs
- NameGenerator.cs
- VectorConverter.cs
- SendMailErrorEventArgs.cs
- Directory.cs
- PagerSettings.cs
- UnsafeNativeMethodsCLR.cs
- Models.cs
- XmlSerializableReader.cs
- XmlConvert.cs
- RangeBaseAutomationPeer.cs
- DataGridCell.cs
- TabItemAutomationPeer.cs
- ModelUIElement3D.cs
- X509Chain.cs
- NamespaceCollection.cs
- VariableQuery.cs
- TableRowGroup.cs
- ServiceHttpModule.cs
- ThicknessAnimation.cs
- SponsorHelper.cs
- RoutedEventConverter.cs
- TextEffect.cs
- input.cs
- NavigationExpr.cs
- SystemGatewayIPAddressInformation.cs
- securestring.cs
- TextSimpleMarkerProperties.cs
- TextBoxBase.cs
- TextEditorSpelling.cs
- ReaderWriterLockWrapper.cs
- DBCSCodePageEncoding.cs
- RawAppCommandInputReport.cs
- TrackingProfileDeserializationException.cs
- ImageSourceTypeConverter.cs
- AnnotationMap.cs
- OleStrCAMarshaler.cs
- InvalidTimeZoneException.cs
- StatusBarPanel.cs
- _ConnectionGroup.cs
- NegotiateStream.cs
- TimeSpanConverter.cs
- CacheOutputQuery.cs
- ImageBrush.cs
- EmptyEnumerable.cs
- PersistenceException.cs
- SafeRightsManagementQueryHandle.cs
- SoapAttributeAttribute.cs
- PackagePartCollection.cs
- TextCompositionEventArgs.cs
- SpinLock.cs
- IndicCharClassifier.cs
- PathSegmentCollection.cs