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
- CodeAssignStatement.cs
- XmlUtil.cs
- shaperfactoryquerycachekey.cs
- DispatcherEventArgs.cs
- DependencyStoreSurrogate.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- AttachedAnnotation.cs
- FormatterConverter.cs
- HierarchicalDataBoundControlAdapter.cs
- OlePropertyStructs.cs
- ClientUtils.cs
- TaskHelper.cs
- ManagedIStream.cs
- DataColumnChangeEvent.cs
- MessageSecurityVersionConverter.cs
- RequestCacheEntry.cs
- IApplicationTrustManager.cs
- Array.cs
- EntityContainer.cs
- SqlSupersetValidator.cs
- HTMLTagNameToTypeMapper.cs
- SmtpLoginAuthenticationModule.cs
- ModelFunctionTypeElement.cs
- ServiceParser.cs
- XmlSchemaComplexType.cs
- NativeMethods.cs
- BypassElementCollection.cs
- IsolatedStorage.cs
- OneToOneMappingSerializer.cs
- Command.cs
- Splitter.cs
- UrlRoutingHandler.cs
- InternalConfigEventArgs.cs
- SymbolMethod.cs
- RsaSecurityKey.cs
- MenuAutoFormat.cs
- ToolStripOverflowButton.cs
- FullTextBreakpoint.cs
- ToolStripPanelRenderEventArgs.cs
- EntityTypeEmitter.cs
- ProjectionCamera.cs
- MouseGestureValueSerializer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ADMembershipProvider.cs
- SqlWebEventProvider.cs
- TagMapInfo.cs
- AnonymousIdentificationSection.cs
- EdmItemCollection.cs
- ComponentEditorForm.cs
- NetworkAddressChange.cs
- SuppressMessageAttribute.cs
- ObfuscateAssemblyAttribute.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ContextStack.cs
- ConnectionPointGlyph.cs
- XmlCharCheckingReader.cs
- UIElementHelper.cs
- CommandLineParser.cs
- RadioButtonRenderer.cs
- NodeFunctions.cs
- LoginAutoFormat.cs
- SemanticBasicElement.cs
- DocumentReferenceCollection.cs
- LineInfo.cs
- AsyncResult.cs
- CompiledQueryCacheEntry.cs
- DockPatternIdentifiers.cs
- StreamAsIStream.cs
- EditingCoordinator.cs
- SqlTrackingQuery.cs
- Page.cs
- LocalFileSettingsProvider.cs
- Metafile.cs
- DownloadProgressEventArgs.cs
- BamlRecordWriter.cs
- TypeConverterHelper.cs
- ThrowHelper.cs
- GestureRecognitionResult.cs
- COM2Enum.cs
- TdsParserHelperClasses.cs
- IConvertible.cs
- SmiConnection.cs
- WebUtility.cs
- ExtensionSurface.cs
- NamedPipeAppDomainProtocolHandler.cs
- cache.cs
- DeadCharTextComposition.cs
- DEREncoding.cs
- IncrementalHitTester.cs
- sitestring.cs
- HtmlInputImage.cs
- CustomAttributeBuilder.cs
- Privilege.cs
- DashStyle.cs
- SafeProcessHandle.cs
- EntityConnection.cs
- SqlTopReducer.cs
- MatrixCamera.cs
- CanExecuteRoutedEventArgs.cs
- PenThread.cs