Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / RenamedEventArgs.cs / 1305376 / RenamedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; using System.Runtime.Versioning; ////// public class RenamedEventArgs : FileSystemEventArgs { private string oldName; private string oldFullPath; ///Provides data for the ///event. /// public RenamedEventArgs(WatcherChangeTypes changeType, string directory, string name, string oldName) : base(changeType, directory, name) { // Ensure that the directory name ends with a "\" if (!directory.EndsWith("\\", StringComparison.Ordinal)) { directory = directory + "\\"; } this.oldName = oldName; this.oldFullPath = directory + oldName; } ////// Initializes a new instance of the ////// class. /// /// public string OldFullPath { [ResourceExposure(ResourceScope.Machine)] [ResourceConsumption(ResourceScope.Machine)] get { new FileIOPermission(FileIOPermissionAccess.Read, Path.GetPathRoot(oldFullPath)).Demand(); return oldFullPath; } } ////// Gets /// the previous fully qualified path of the affected file or directory. /// ////// public string OldName { get { return oldName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets /// the old name of the affected file or directory. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RequestQueryParser.cs
- SizeChangedEventArgs.cs
- DaylightTime.cs
- RowToFieldTransformer.cs
- DaylightTime.cs
- SafeProcessHandle.cs
- ArrayList.cs
- AdapterUtil.cs
- NetTcpBindingElement.cs
- ProcessThread.cs
- XmlSerializerOperationBehavior.cs
- CallbackValidatorAttribute.cs
- XamlSerializer.cs
- UrlAuthFailureHandler.cs
- AnimationTimeline.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- KnownTypesHelper.cs
- ConditionalAttribute.cs
- Resources.Designer.cs
- FunctionGenerator.cs
- CodeDOMUtility.cs
- XPathException.cs
- SessionStateContainer.cs
- _RequestCacheProtocol.cs
- _DigestClient.cs
- ToolStripStatusLabel.cs
- FixedPageProcessor.cs
- ProxyFragment.cs
- ExchangeUtilities.cs
- SettingsPropertyNotFoundException.cs
- FragmentNavigationEventArgs.cs
- DynamicMethod.cs
- UnauthorizedAccessException.cs
- AssertFilter.cs
- Keywords.cs
- ConfigLoader.cs
- KeyEventArgs.cs
- RegistryConfigurationProvider.cs
- NetWebProxyFinder.cs
- ErrorFormatterPage.cs
- DbParameterCollectionHelper.cs
- SqlUtils.cs
- RemotingSurrogateSelector.cs
- ExclusiveCanonicalizationTransform.cs
- ScriptIgnoreAttribute.cs
- LocalizationComments.cs
- ParameterSubsegment.cs
- RequestCachingSection.cs
- VarRefManager.cs
- XmlWriter.cs
- DependencyPropertyAttribute.cs
- ServicePointManager.cs
- LambdaCompiler.cs
- DataBindingValueUIHandler.cs
- StateDesigner.Helpers.cs
- ProtocolsConfigurationEntry.cs
- InternalUserCancelledException.cs
- UrlPath.cs
- precedingquery.cs
- DeviceSpecificDialogCachedState.cs
- __Error.cs
- AliasExpr.cs
- Rss20ItemFormatter.cs
- NativeMethods.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- ViewLoader.cs
- RouteItem.cs
- PathGeometry.cs
- TextSelectionHelper.cs
- PersistenceTypeAttribute.cs
- AnimationClock.cs
- BasicCellRelation.cs
- EncoderNLS.cs
- DataControlCommands.cs
- ConnectionInterfaceCollection.cs
- CommandBinding.cs
- HttpListenerPrefixCollection.cs
- ApplicationInfo.cs
- CodeDirectionExpression.cs
- OptimisticConcurrencyException.cs
- ConvertEvent.cs
- ClientConfigurationHost.cs
- IndicShape.cs
- SingleConverter.cs
- SqlDataSourceCommandEventArgs.cs
- ExtentKey.cs
- Base64Decoder.cs
- HttpProfileGroupBase.cs
- ProfileEventArgs.cs
- StartFileNameEditor.cs
- DataGridCell.cs
- DateTimeOffsetAdapter.cs
- XmlWrappingReader.cs
- InfoCardKeyedHashAlgorithm.cs
- AssemblyCollection.cs
- UrlMappingsSection.cs
- ToolStripDropDown.cs
- SystemInfo.cs
- SmtpNtlmAuthenticationModule.cs
- ChannelPool.cs