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
- DataGridViewColumnConverter.cs
- HtmlInputImage.cs
- ConditionChanges.cs
- RegexCompilationInfo.cs
- Grant.cs
- SoapFaultCodes.cs
- TrustSection.cs
- TrackingDataItemValue.cs
- BreakRecordTable.cs
- UIElement.cs
- WebAdminConfigurationHelper.cs
- PartitionerStatic.cs
- ConnectAlgorithms.cs
- CodeIdentifiers.cs
- XPSSignatureDefinition.cs
- HtmlToClrEventProxy.cs
- OleDbTransaction.cs
- PostBackOptions.cs
- ReflectionUtil.cs
- MarkupWriter.cs
- ScriptingSectionGroup.cs
- PostBackOptions.cs
- AssemblyAssociatedContentFileAttribute.cs
- PropertyDescriptorComparer.cs
- ExtendedPropertyCollection.cs
- HttpRawResponse.cs
- WebHeaderCollection.cs
- DesignerCategoryAttribute.cs
- FragmentNavigationEventArgs.cs
- DataRowCollection.cs
- WmlPageAdapter.cs
- TextHidden.cs
- RTLAwareMessageBox.cs
- DataPagerFieldCommandEventArgs.cs
- UIPropertyMetadata.cs
- BitmapEncoder.cs
- ClientRoleProvider.cs
- CodeEventReferenceExpression.cs
- ByteBufferPool.cs
- MemberHolder.cs
- PropertyValueChangedEvent.cs
- Util.cs
- PropertyEmitterBase.cs
- DataGridBoolColumn.cs
- SoapIncludeAttribute.cs
- XmlSchemaElement.cs
- XmlWriter.cs
- BaseUriHelper.cs
- DemultiplexingClientMessageFormatter.cs
- EventWaitHandleSecurity.cs
- StoreAnnotationsMap.cs
- AppSecurityManager.cs
- GridViewUpdateEventArgs.cs
- RegistrationContext.cs
- CSharpCodeProvider.cs
- DataKeyPropertyAttribute.cs
- UserControlDocumentDesigner.cs
- DataTableClearEvent.cs
- PrincipalPermission.cs
- ErasingStroke.cs
- NameNode.cs
- ControlPaint.cs
- AutomationPattern.cs
- GlyphsSerializer.cs
- WindowsFormsHostAutomationPeer.cs
- WizardPanel.cs
- InputLanguageCollection.cs
- OletxCommittableTransaction.cs
- StyleBamlRecordReader.cs
- DataControlReferenceCollection.cs
- DesigntimeLicenseContext.cs
- EntityStoreSchemaGenerator.cs
- DbConnectionPoolGroup.cs
- MonthChangedEventArgs.cs
- SerializationException.cs
- QuaternionConverter.cs
- CommonDialog.cs
- METAHEADER.cs
- Pipe.cs
- Label.cs
- XmlSerializerAssemblyAttribute.cs
- ModuleElement.cs
- Evidence.cs
- InheritanceContextHelper.cs
- BasePropertyDescriptor.cs
- FrameworkElement.cs
- DataSpaceManager.cs
- BaseCAMarshaler.cs
- EntityDataSourceView.cs
- DurableInstanceProvider.cs
- IsolatedStorageFilePermission.cs
- MetabaseServerConfig.cs
- InfocardClientCredentials.cs
- ExecutedRoutedEventArgs.cs
- TrackingDataItem.cs
- IndexedString.cs
- FlowLayout.cs
- ZipIOBlockManager.cs
- ValidationService.cs
- MessageParameterAttribute.cs