Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / RefreshEventArgs.cs / 1305376 / RefreshEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class RefreshEventArgs : EventArgs { private object componentChanged; private Type typeChanged; ////// Provides data for the ///event. /// /// public RefreshEventArgs(object componentChanged) { this.componentChanged = componentChanged; this.typeChanged = componentChanged.GetType(); } ////// Initializes a new instance of the ///class with /// the component that has /// changed. /// /// public RefreshEventArgs(Type typeChanged) { this.typeChanged = typeChanged; } ////// Initializes a new instance of the ///class with /// the type /// of component that has changed. /// /// public object ComponentChanged { get { return componentChanged; } } ////// Gets the component that has changed /// its properties, events, or /// extenders. /// ////// public Type TypeChanged { get { return typeChanged; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets the type that has changed its properties, or events. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class RefreshEventArgs : EventArgs { private object componentChanged; private Type typeChanged; ////// Provides data for the ///event. /// /// public RefreshEventArgs(object componentChanged) { this.componentChanged = componentChanged; this.typeChanged = componentChanged.GetType(); } ////// Initializes a new instance of the ///class with /// the component that has /// changed. /// /// public RefreshEventArgs(Type typeChanged) { this.typeChanged = typeChanged; } ////// Initializes a new instance of the ///class with /// the type /// of component that has changed. /// /// public object ComponentChanged { get { return componentChanged; } } ////// Gets the component that has changed /// its properties, events, or /// extenders. /// ////// public Type TypeChanged { get { return typeChanged; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets the type that has changed its properties, or events. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationFileCodeDomTreeGenerator.cs
- SendMessageRecord.cs
- RecoverInstanceLocksCommand.cs
- FontStretch.cs
- TypeLibConverter.cs
- AsymmetricKeyExchangeDeformatter.cs
- AddInProcess.cs
- IteratorFilter.cs
- SubMenuStyleCollection.cs
- odbcmetadatacolumnnames.cs
- QuerySubExprEliminator.cs
- CapacityStreamGeometryContext.cs
- ZipIOModeEnforcingStream.cs
- X509ChainElement.cs
- QueryCacheKey.cs
- CacheChildrenQuery.cs
- Utils.cs
- Evidence.cs
- EventSinkHelperWriter.cs
- CustomAttribute.cs
- SafeRightsManagementSessionHandle.cs
- TabControlCancelEvent.cs
- HttpBufferlessInputStream.cs
- DesignerOptionService.cs
- MailDefinition.cs
- NamespaceTable.cs
- StrokeCollection2.cs
- RegexGroup.cs
- SimpleHandlerBuildProvider.cs
- MenuItemBinding.cs
- EnumValAlphaComparer.cs
- FacetChecker.cs
- CodeAttributeArgumentCollection.cs
- HeaderedContentControl.cs
- HttpCacheVary.cs
- RawStylusActions.cs
- WsdlBuildProvider.cs
- VisualProxy.cs
- DbConnectionClosed.cs
- CodeTypeParameterCollection.cs
- LinkArea.cs
- CodeDesigner.cs
- DataMemberConverter.cs
- SHA1CryptoServiceProvider.cs
- WindowsEditBox.cs
- OperationDescription.cs
- XsltQilFactory.cs
- ConfigurationManagerHelper.cs
- MimeBasePart.cs
- DrawTreeNodeEventArgs.cs
- InputReportEventArgs.cs
- ComponentDesigner.cs
- ExecutedRoutedEventArgs.cs
- CompoundFileDeflateTransform.cs
- DecoderFallbackWithFailureFlag.cs
- PhysicalAddress.cs
- ProviderIncompatibleException.cs
- EdmItemError.cs
- TableRow.cs
- Rotation3DAnimationBase.cs
- OptimizedTemplateContent.cs
- HandledEventArgs.cs
- Literal.cs
- InputLangChangeEvent.cs
- HtmlInputImage.cs
- ListViewItemEventArgs.cs
- SqlClientWrapperSmiStream.cs
- TableLayoutStyle.cs
- EntitySqlQueryState.cs
- TabControlCancelEvent.cs
- WebConfigurationHostFileChange.cs
- ComplexTypeEmitter.cs
- Light.cs
- StateRuntime.cs
- CommandExpr.cs
- ApplicationException.cs
- XmlAttributeCollection.cs
- OleDbStruct.cs
- CommonServiceBehaviorElement.cs
- XmlTypeMapping.cs
- FontStretch.cs
- DesignConnection.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- DrawItemEvent.cs
- PackWebRequest.cs
- PackageStore.cs
- SocketAddress.cs
- GZipStream.cs
- ServiceDescriptions.cs
- DefaultHttpHandler.cs
- ServiceSecurityAuditElement.cs
- XmlElementList.cs
- AssemblyInfo.cs
- NetworkAddressChange.cs
- HandleInitializationContext.cs
- BitmapSource.cs
- CollectionMarkupSerializer.cs
- LayoutInformation.cs
- VisualTreeHelper.cs
- EnumUnknown.cs