Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CommaDelimitedStringAttributeCollectionConverter.cs
- ICollection.cs
- ClaimSet.cs
- OleDbConnection.cs
- WebRequestModulesSection.cs
- NavigatingCancelEventArgs.cs
- UnsafeNativeMethods.cs
- ReadingWritingEntityEventArgs.cs
- DateTimeParse.cs
- BinaryReader.cs
- DecimalSumAggregationOperator.cs
- ReceiveSecurityHeader.cs
- SafeFileHandle.cs
- AdornerLayer.cs
- Sentence.cs
- ActivationProxy.cs
- ClickablePoint.cs
- XPathSelfQuery.cs
- BeginGetFileNameFromUserRequest.cs
- ImageEditor.cs
- DataGridViewLinkColumn.cs
- OutputCacheProfile.cs
- SessionPageStatePersister.cs
- CancelAsyncOperationRequest.cs
- AxisAngleRotation3D.cs
- ListBase.cs
- SymmetricKey.cs
- TransactionFlowBindingElement.cs
- HostDesigntimeLicenseContext.cs
- wgx_exports.cs
- ReadOnlyAttribute.cs
- OleDbReferenceCollection.cs
- CodeTypeMemberCollection.cs
- AQNBuilder.cs
- SafeTimerHandle.cs
- VirtualDirectoryMapping.cs
- ReadContentAsBinaryHelper.cs
- PrimitiveType.cs
- TextWriterEngine.cs
- DataFormat.cs
- RegularExpressionValidator.cs
- RuleSettingsCollection.cs
- ResolveNameEventArgs.cs
- FullTextState.cs
- FusionWrap.cs
- SiteMapNodeCollection.cs
- PasswordTextContainer.cs
- PropertyGroupDescription.cs
- OverflowException.cs
- XmlLanguageConverter.cs
- VectorKeyFrameCollection.cs
- BufferedConnection.cs
- GlobalProxySelection.cs
- Ref.cs
- ConfigurationStrings.cs
- ResourceIDHelper.cs
- TableLayoutPanelCellPosition.cs
- CatalogZoneBase.cs
- autovalidator.cs
- ScriptRegistrationManager.cs
- nulltextnavigator.cs
- ClientCredentialsSecurityTokenManager.cs
- Operator.cs
- CornerRadiusConverter.cs
- ProfileBuildProvider.cs
- XmlAutoDetectWriter.cs
- IdentifierCollection.cs
- securitymgrsite.cs
- TreeNode.cs
- RIPEMD160.cs
- MemberAccessException.cs
- HtmlPageAdapter.cs
- InternalCache.cs
- SafeReversePInvokeHandle.cs
- TraceXPathNavigator.cs
- HwndSourceKeyboardInputSite.cs
- DependencyObjectPropertyDescriptor.cs
- TypePresenter.xaml.cs
- ConfigurationPermission.cs
- BoundPropertyEntry.cs
- UserPreferenceChangedEventArgs.cs
- HandlerMappingMemo.cs
- CodeSubDirectory.cs
- HuffmanTree.cs
- NumberFormatInfo.cs
- RemotingSurrogateSelector.cs
- RSAPKCS1SignatureFormatter.cs
- COM2ExtendedBrowsingHandler.cs
- MULTI_QI.cs
- DesignerVerb.cs
- EntityDataReader.cs
- SchemaImporterExtensionElementCollection.cs
- TextContainerChangedEventArgs.cs
- ObjectListCommandEventArgs.cs
- XmlDocument.cs
- SmiRequestExecutor.cs
- StylusPointProperty.cs
- AutoResetEvent.cs
- TemplateNodeContextMenu.cs
- XamlContextStack.cs