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
- counter.cs
- NegotiationTokenAuthenticatorStateCache.cs
- FormViewDeleteEventArgs.cs
- cache.cs
- FilteredDataSetHelper.cs
- X509Certificate.cs
- Publisher.cs
- IMembershipProvider.cs
- WebEventTraceProvider.cs
- CompilerInfo.cs
- XmlSiteMapProvider.cs
- PlacementWorkspace.cs
- SqlDataSourceEnumerator.cs
- WSSecurityJan2004.cs
- TraceSwitch.cs
- ImportCatalogPart.cs
- FixedBufferAttribute.cs
- CmsInterop.cs
- DefaultExpressionVisitor.cs
- FastEncoderStatics.cs
- BmpBitmapEncoder.cs
- Operators.cs
- SafeHandles.cs
- CancelEventArgs.cs
- SubclassTypeValidatorAttribute.cs
- HtmlLabelAdapter.cs
- Msec.cs
- PropertyConverter.cs
- SHA256.cs
- ReferentialConstraint.cs
- GuidTagList.cs
- CounterCreationDataCollection.cs
- FacetValues.cs
- HandoffBehavior.cs
- SqlNodeAnnotation.cs
- NullableConverter.cs
- CannotUnloadAppDomainException.cs
- UntrustedRecipientException.cs
- DefaultHttpHandler.cs
- DeploymentSectionCache.cs
- GridViewCancelEditEventArgs.cs
- ProcessingInstructionAction.cs
- CodeAssignStatement.cs
- FastEncoder.cs
- CounterSample.cs
- DataRecordObjectView.cs
- BaseWebProxyFinder.cs
- TypeDescriptionProvider.cs
- TypeUtils.cs
- _CacheStreams.cs
- TableCellsCollectionEditor.cs
- ReadOnlyTernaryTree.cs
- ToolboxItemLoader.cs
- SignatureToken.cs
- FlagsAttribute.cs
- SortedList.cs
- RawStylusActions.cs
- TargetPerspective.cs
- SHA384Managed.cs
- EntityDataSourceChangedEventArgs.cs
- ApplicationSecurityManager.cs
- ExtensionFile.cs
- AuthenticodeSignatureInformation.cs
- MetaModel.cs
- DragDropManager.cs
- ControlPropertyNameConverter.cs
- IssuedTokenClientElement.cs
- DataBindingExpressionBuilder.cs
- Exception.cs
- DrawItemEvent.cs
- DuplicateWaitObjectException.cs
- Array.cs
- Operand.cs
- Encoder.cs
- AccessorTable.cs
- InstanceOwner.cs
- UpdatePanelControlTrigger.cs
- SystemIcmpV6Statistics.cs
- GeneralTransform.cs
- TableRowCollection.cs
- HttpRawResponse.cs
- RegexCompiler.cs
- Blend.cs
- XmlSiteMapProvider.cs
- FacetDescriptionElement.cs
- Adorner.cs
- TextPointer.cs
- EncryptedData.cs
- DrawItemEvent.cs
- NavigationPropertyEmitter.cs
- Vector3dCollection.cs
- GrammarBuilderPhrase.cs
- XPathDocumentBuilder.cs
- FormattedTextSymbols.cs
- PointAnimationUsingKeyFrames.cs
- StreamWriter.cs
- ExpressionVisitor.cs
- ScopelessEnumAttribute.cs
- PtsPage.cs
- Schema.cs