Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
///
/// Provides data for the directory events: , , .
///
public class FileSystemEventArgs : EventArgs {
private WatcherChangeTypes changeType;
private string name;
private string fullPath;
///
/// Initializes a new instance of the class.
///
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;
}
///
///
/// Gets
/// one of the
/// values.
///
///
public WatcherChangeTypes ChangeType {
get {
return changeType;
}
}
///
///
/// Gets
/// the
/// fully qualifed path of the affected file or directory.
///
///
public string FullPath {
get {
return fullPath;
}
}
///
///
/// Gets
/// the name of the affected file or directory.
///
///
public string Name {
get {
return name;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HostingPreferredMapPath.cs
- Object.cs
- QilNode.cs
- ContentPresenter.cs
- SemanticAnalyzer.cs
- QilIterator.cs
- ComponentEvent.cs
- SafeLibraryHandle.cs
- WindowsSecurityToken.cs
- ResourceDefaultValueAttribute.cs
- Native.cs
- ContentFilePart.cs
- DataTable.cs
- TransformedBitmap.cs
- Setter.cs
- input.cs
- GridViewCommandEventArgs.cs
- DetailsViewPageEventArgs.cs
- ConnectionDemuxer.cs
- Vector.cs
- MsdtcClusterUtils.cs
- ColorConvertedBitmap.cs
- TemplateBindingExpression.cs
- HostProtectionException.cs
- FontSource.cs
- StylusPointPropertyInfoDefaults.cs
- AuthenticationModeHelper.cs
- ParameterExpression.cs
- invalidudtexception.cs
- ContextStaticAttribute.cs
- PageBuildProvider.cs
- FamilyTypeface.cs
- ExtensionSimplifierMarkupObject.cs
- CalendarDateRange.cs
- ScrollViewer.cs
- TextDecorationCollectionConverter.cs
- SqlProviderUtilities.cs
- WebFaultClientMessageInspector.cs
- DataErrorValidationRule.cs
- TextDecorationCollectionConverter.cs
- invalidudtexception.cs
- UnsafeNativeMethodsPenimc.cs
- PopupEventArgs.cs
- SByteConverter.cs
- WebPartManagerDesigner.cs
- StructuredType.cs
- NamespaceInfo.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- UserNameSecurityToken.cs
- DynamicActionMessageFilter.cs
- ParentUndoUnit.cs
- HtmlGenericControl.cs
- StandardBindingOptionalReliableSessionElement.cs
- PatternMatcher.cs
- DataGridViewLinkColumn.cs
- SectionVisual.cs
- DataGridHeaderBorder.cs
- InkCanvas.cs
- RoleManagerSection.cs
- Faults.cs
- TCPListener.cs
- TopClause.cs
- BufferedWebEventProvider.cs
- SerializationHelper.cs
- ErrorWrapper.cs
- HttpRequestTraceRecord.cs
- GridViewUpdatedEventArgs.cs
- EnvironmentPermission.cs
- FontStyles.cs
- Compress.cs
- EpmTargetTree.cs
- CodeIdentifier.cs
- ConfigXmlText.cs
- DataServiceExpressionVisitor.cs
- AdPostCacheSubstitution.cs
- XmlSchemaAnyAttribute.cs
- ServiceDesigner.cs
- LinkGrep.cs
- DataPagerFieldItem.cs
- CodeAttachEventStatement.cs
- Compiler.cs
- GradientStop.cs
- LoggedException.cs
- BitmapCodecInfo.cs
- ImageAnimator.cs
- DataBoundControlAdapter.cs
- ObjectContextServiceProvider.cs
- TextServicesPropertyRanges.cs
- CultureTable.cs
- GenericEnumConverter.cs
- Rotation3DAnimation.cs
- Vector3DCollectionValueSerializer.cs
- IndexOutOfRangeException.cs
- DetailsViewUpdateEventArgs.cs
- ScriptModule.cs
- DataSet.cs
- ConsumerConnectionPointCollection.cs
- Application.cs
- SelfSignedCertificate.cs
- Publisher.cs