Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / IO / System / IO / RenamedEventArgs.cs / 1 / RenamedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; ////// 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 { 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; } } } }/// 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
- ApplicationGesture.cs
- FirstMatchCodeGroup.cs
- SspiSecurityTokenProvider.cs
- RepeatBehavior.cs
- ZeroOpNode.cs
- EventSinkActivityDesigner.cs
- HwndAppCommandInputProvider.cs
- DBCommand.cs
- QilChoice.cs
- AddingNewEventArgs.cs
- CurrentTimeZone.cs
- DisableDpiAwarenessAttribute.cs
- ToolboxDataAttribute.cs
- LeftCellWrapper.cs
- FreezableCollection.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ValidationUtility.cs
- EmbeddedMailObject.cs
- WrappedReader.cs
- SQLDateTimeStorage.cs
- QilValidationVisitor.cs
- Timeline.cs
- SplineQuaternionKeyFrame.cs
- DriveInfo.cs
- PopOutPanel.cs
- BitArray.cs
- Types.cs
- SoapSchemaMember.cs
- CheckoutException.cs
- IProvider.cs
- WebServiceErrorEvent.cs
- HtmlForm.cs
- SqlUdtInfo.cs
- EntityClientCacheEntry.cs
- FontSourceCollection.cs
- CompiledIdentityConstraint.cs
- DataServices.cs
- AssociationType.cs
- DecimalConstantAttribute.cs
- AppDomainAttributes.cs
- MaskInputRejectedEventArgs.cs
- FamilyMap.cs
- ConfigurationHelpers.cs
- TrustManagerPromptUI.cs
- SrgsRule.cs
- ConnectionConsumerAttribute.cs
- CodeCommentStatement.cs
- ListBindableAttribute.cs
- ZipArchive.cs
- ActivityExecutionFilter.cs
- Wildcard.cs
- ToolStripDesignerUtils.cs
- PerformanceCountersElement.cs
- XmlCustomFormatter.cs
- PolicyManager.cs
- ConfigXmlWhitespace.cs
- CompilationLock.cs
- PropertyGeneratedEventArgs.cs
- DataGridTableStyleMappingNameEditor.cs
- WsdlImporterElementCollection.cs
- SwitchAttribute.cs
- PackagePart.cs
- mda.cs
- AddInToken.cs
- ItemCollection.cs
- TypeConvertions.cs
- cryptoapiTransform.cs
- Crc32Helper.cs
- XmlSerializerAssemblyAttribute.cs
- HWStack.cs
- PrivacyNoticeElement.cs
- XmlDesigner.cs
- ProfilePropertySettings.cs
- XsltConvert.cs
- DrawingGroup.cs
- CodeMemberProperty.cs
- TextBox.cs
- BindingGraph.cs
- CompiledELinqQueryState.cs
- UnSafeCharBuffer.cs
- ThemeableAttribute.cs
- EnvironmentPermission.cs
- ProfilePropertySettingsCollection.cs
- StylusEventArgs.cs
- WsatServiceCertificate.cs
- MaterializeFromAtom.cs
- XmlText.cs
- SessionParameter.cs
- TypedLocationWrapper.cs
- HopperCache.cs
- ConfigXmlText.cs
- Crc32.cs
- UndirectedGraph.cs
- ProvidersHelper.cs
- ReflectionUtil.cs
- SqlSelectClauseBuilder.cs
- webclient.cs
- CodePrimitiveExpression.cs
- WpfPayload.cs
- Message.cs