Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- EntityDataSourceWrapper.cs
- MediaCommands.cs
- CodeObject.cs
- DeploymentExceptionMapper.cs
- TraceSection.cs
- DrawItemEvent.cs
- UnsafeNativeMethods.cs
- TransactedBatchContext.cs
- SignatureHelper.cs
- ParameterToken.cs
- MenuTracker.cs
- SearchExpression.cs
- BlockExpression.cs
- HostedAspNetEnvironment.cs
- ReflectionPermission.cs
- TypeReference.cs
- Slider.cs
- SafeArrayTypeMismatchException.cs
- BuilderPropertyEntry.cs
- UnsafeNativeMethodsTablet.cs
- PolygonHotSpot.cs
- NativeRecognizer.cs
- Point3DCollection.cs
- TextEditorTyping.cs
- RepeatBehaviorConverter.cs
- DbConnectionStringBuilder.cs
- InputChannelAcceptor.cs
- DiscoveryClientDocuments.cs
- CalendarDateChangedEventArgs.cs
- KeyValueConfigurationElement.cs
- HelloMessage11.cs
- BufferModesCollection.cs
- Screen.cs
- MenuItem.cs
- TcpHostedTransportConfiguration.cs
- XmlTextReaderImplHelpers.cs
- ModifierKeysConverter.cs
- IndexedString.cs
- SequenceRange.cs
- FormsAuthenticationUser.cs
- Fx.cs
- DataGridViewTextBoxEditingControl.cs
- PageClientProxyGenerator.cs
- WorkflowTraceTransfer.cs
- SqlMultiplexer.cs
- BStrWrapper.cs
- TimeSpanParse.cs
- StringCollection.cs
- Queue.cs
- RTLAwareMessageBox.cs
- QuotedPrintableStream.cs
- EventProperty.cs
- CompositionTarget.cs
- DiscoveryClientOutputChannel.cs
- Component.cs
- TargetInvocationException.cs
- WindowHideOrCloseTracker.cs
- EntitySqlException.cs
- DataViewSettingCollection.cs
- HtmlInputCheckBox.cs
- SqlDataSourceEnumerator.cs
- ListViewUpdateEventArgs.cs
- StylusPoint.cs
- DataViewSettingCollection.cs
- CellLabel.cs
- _BasicClient.cs
- ExtensionFile.cs
- documentsequencetextpointer.cs
- ParseHttpDate.cs
- ConfigXmlAttribute.cs
- SymLanguageType.cs
- AxHost.cs
- MachineSettingsSection.cs
- ServiceContractViewControl.cs
- FontFamilyIdentifier.cs
- XPathItem.cs
- SelfIssuedTokenFactoryCredential.cs
- PopupRootAutomationPeer.cs
- GridLength.cs
- OracleBoolean.cs
- Switch.cs
- Qualifier.cs
- ManagedFilter.cs
- XPathNodeHelper.cs
- OutOfProcStateClientManager.cs
- KeyValueInternalCollection.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- KerberosReceiverSecurityToken.cs
- PropertyValue.cs
- SqlAggregateChecker.cs
- shaperfactoryquerycacheentry.cs
- WpfWebRequestHelper.cs
- mediaeventshelper.cs
- QueryBranchOp.cs
- DefaultTextStoreTextComposition.cs
- HttpProfileBase.cs
- OdbcParameterCollection.cs
- UnsafeNativeMethods.cs
- TabOrder.cs
- CheckoutException.cs