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
- SrgsRule.cs
- SystemIcmpV4Statistics.cs
- Error.cs
- ResXDataNode.cs
- ListItemDetailViewAttribute.cs
- DataMemberAttribute.cs
- ObjectListDesigner.cs
- BufferedStream2.cs
- RouteValueExpressionBuilder.cs
- PeerTransportListenAddressConverter.cs
- IteratorFilter.cs
- WindowsAuthenticationEventArgs.cs
- RegisteredHiddenField.cs
- RuntimeArgumentHandle.cs
- IpcServerChannel.cs
- XmlCharacterData.cs
- ToolStripDropDownItem.cs
- CodeSnippetTypeMember.cs
- HtmlInputImage.cs
- SplitContainer.cs
- IUnknownConstantAttribute.cs
- EntityDesignerDataSourceView.cs
- ConfigurationPermission.cs
- Blend.cs
- Help.cs
- ProcessInfo.cs
- Attributes.cs
- PlainXmlWriter.cs
- SQLMoneyStorage.cs
- DataGridViewImageCell.cs
- JoinSymbol.cs
- CompilerInfo.cs
- PeerInputChannelListener.cs
- XhtmlConformanceSection.cs
- SerialErrors.cs
- StrongNameMembershipCondition.cs
- BlurEffect.cs
- MergeFilterQuery.cs
- FamilyTypefaceCollection.cs
- CubicEase.cs
- TypeSemantics.cs
- ClientSettings.cs
- CodeObjectCreateExpression.cs
- TextEditorSelection.cs
- ParallelTimeline.cs
- Win32.cs
- DataListDesigner.cs
- basenumberconverter.cs
- ErrorRuntimeConfig.cs
- String.cs
- DPTypeDescriptorContext.cs
- InvariantComparer.cs
- KnownTypesProvider.cs
- WebConfigurationFileMap.cs
- CapiHashAlgorithm.cs
- HttpCapabilitiesBase.cs
- HttpListener.cs
- VerificationAttribute.cs
- XamlFrame.cs
- NumberFormatInfo.cs
- LazyTextWriterCreator.cs
- updateconfighost.cs
- ADConnectionHelper.cs
- BitSet.cs
- ProtocolsSection.cs
- OleDbRowUpdatingEvent.cs
- PermissionListSet.cs
- Int64.cs
- NumericUpDownAccelerationCollection.cs
- ButtonBaseAutomationPeer.cs
- ConnectionInterfaceCollection.cs
- TypeSystemProvider.cs
- SystemEvents.cs
- FixedTextSelectionProcessor.cs
- DataAdapter.cs
- SelfIssuedTokenFactoryCredential.cs
- Crypto.cs
- HttpContext.cs
- TraceXPathNavigator.cs
- MatrixStack.cs
- WasEndpointConfigContainer.cs
- ParameterModifier.cs
- StylusTouchDevice.cs
- ScriptManager.cs
- MessageEventSubscriptionService.cs
- DrawingGroupDrawingContext.cs
- Descriptor.cs
- CodeDirectiveCollection.cs
- Type.cs
- WmlCommandAdapter.cs
- xdrvalidator.cs
- SecurityUtils.cs
- SerializationInfo.cs
- ConnectionsZoneDesigner.cs
- BitVector32.cs
- Literal.cs
- ComplexPropertyEntry.cs
- UndoEngine.cs
- ObjectFullSpanRewriter.cs
- ApplicationSecurityInfo.cs