Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / ComponentEvent.cs / 1305376 / ComponentEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel.Design {
using Microsoft.Win32;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the System.ComponentModel.Design.IComponentChangeService.ComponentEvent
/// event raised for component-level events.
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class ComponentEventArgs : EventArgs {
private IComponent component;
///
///
/// Gets or sets the component associated with the event.
///
///
public virtual IComponent Component {
get {
return component;
}
}
///
///
/// Initializes a new instance of the System.ComponentModel.Design.ComponentEventArgs class.
///
///
public ComponentEventArgs(IComponent component) {
this.component = component;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel.Design {
using Microsoft.Win32;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the System.ComponentModel.Design.IComponentChangeService.ComponentEvent
/// event raised for component-level events.
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class ComponentEventArgs : EventArgs {
private IComponent component;
///
///
/// Gets or sets the component associated with the event.
///
///
public virtual IComponent Component {
get {
return component;
}
}
///
///
/// Initializes a new instance of the System.ComponentModel.Design.ComponentEventArgs class.
///
///
public ComponentEventArgs(IComponent component) {
this.component = component;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MatchAttribute.cs
- Padding.cs
- RelatedCurrencyManager.cs
- RawMouseInputReport.cs
- DbConnectionClosed.cs
- ObservableDictionary.cs
- MetadataSource.cs
- ListenerAdapter.cs
- AttachedAnnotationChangedEventArgs.cs
- WindowsProgressbar.cs
- XmlElementAttributes.cs
- JsonEncodingStreamWrapper.cs
- BaseInfoTable.cs
- FontEmbeddingManager.cs
- RuntimeHandles.cs
- thaishape.cs
- XPathArrayIterator.cs
- CompositeDispatchFormatter.cs
- WebPartExportVerb.cs
- EdmConstants.cs
- Environment.cs
- WebUtil.cs
- TextEditorDragDrop.cs
- SpeechDetectedEventArgs.cs
- RecognitionEventArgs.cs
- TreeNodeMouseHoverEvent.cs
- InvokeMethod.cs
- StoreItemCollection.Loader.cs
- SQLBytes.cs
- XmlDomTextWriter.cs
- GridViewRowEventArgs.cs
- DoubleAnimationClockResource.cs
- RefType.cs
- IProvider.cs
- AddInStore.cs
- LogoValidationException.cs
- SafeCryptContextHandle.cs
- XmlCodeExporter.cs
- MaxValueConverter.cs
- PasswordTextContainer.cs
- BindingWorker.cs
- StandardTransformFactory.cs
- GlyphingCache.cs
- WmpBitmapEncoder.cs
- NonPrimarySelectionGlyph.cs
- RadioButtonList.cs
- ByteStreamGeometryContext.cs
- keycontainerpermission.cs
- GridViewEditEventArgs.cs
- XmlNode.cs
- MSAANativeProvider.cs
- SignerInfo.cs
- SystemWebCachingSectionGroup.cs
- DSACryptoServiceProvider.cs
- PeerNameRegistration.cs
- SingletonChannelAcceptor.cs
- InteropTrackingRecord.cs
- SystemResourceKey.cs
- SecurityTimestamp.cs
- NetStream.cs
- ObjectDataSourceView.cs
- DragCompletedEventArgs.cs
- GridViewSelectEventArgs.cs
- ObjectToIdCache.cs
- OleDbParameterCollection.cs
- EntitySetBaseCollection.cs
- PackageProperties.cs
- FastPropertyAccessor.cs
- DesignerLinkAdapter.cs
- ArrayList.cs
- ConsumerConnectionPointCollection.cs
- NumericUpDown.cs
- TreeNodeCollectionEditorDialog.cs
- GridPatternIdentifiers.cs
- HandlerWithFactory.cs
- FullTextBreakpoint.cs
- Html32TextWriter.cs
- ConstraintEnumerator.cs
- SwitchLevelAttribute.cs
- DateTimeConverter2.cs
- TextProperties.cs
- DrawingBrush.cs
- ExceptionHelpers.cs
- PartialList.cs
- StoragePropertyMapping.cs
- PolyBezierSegment.cs
- SoapIncludeAttribute.cs
- SupportsEventValidationAttribute.cs
- WindowsGraphics.cs
- PerformanceCounterManager.cs
- Switch.cs
- PartBasedPackageProperties.cs
- HtmlSelectionListAdapter.cs
- TableCell.cs
- DebugTraceHelper.cs
- InvalidCastException.cs
- ToolStripArrowRenderEventArgs.cs
- Message.cs
- ResourceWriter.cs
- DocumentGridContextMenu.cs