Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / Design / ComponentEvent.cs / 1 / 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
- WebPartMinimizeVerb.cs
- WebEventTraceProvider.cs
- _DomainName.cs
- CatalogZone.cs
- DecoderNLS.cs
- EndOfStreamException.cs
- SqlCachedBuffer.cs
- Parallel.cs
- FunctionUpdateCommand.cs
- DetailsViewModeEventArgs.cs
- CfgParser.cs
- ElementsClipboardData.cs
- InstanceHandle.cs
- QuotedStringFormatReader.cs
- IntSecurity.cs
- OleDbDataAdapter.cs
- PropertyGrid.cs
- Delegate.cs
- DataGridViewUtilities.cs
- HttpPostedFile.cs
- SimpleHandlerFactory.cs
- ComboBoxItem.cs
- CodeComment.cs
- HtmlControl.cs
- TraceListener.cs
- ResourceDescriptionAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- sqlcontext.cs
- SchemaConstraints.cs
- SqlDataSource.cs
- HTTPNotFoundHandler.cs
- WindowsScrollBar.cs
- ContainerParagraph.cs
- NullableDoubleAverageAggregationOperator.cs
- NonPrimarySelectionGlyph.cs
- ViewBox.cs
- SaveRecipientRequest.cs
- TextTreeNode.cs
- ActivationWorker.cs
- InstanceDataCollectionCollection.cs
- ExternalCalls.cs
- IssuanceLicense.cs
- PassportAuthentication.cs
- FileLoadException.cs
- StringExpressionSet.cs
- StateBag.cs
- TemplatePagerField.cs
- AuditLogLocation.cs
- GridViewColumnHeader.cs
- TaskCanceledException.cs
- PackWebRequestFactory.cs
- TimeSpanMinutesConverter.cs
- ToolboxBitmapAttribute.cs
- PagerSettings.cs
- WindowsSlider.cs
- RoutedCommand.cs
- PointConverter.cs
- Error.cs
- ChannelSinkStacks.cs
- WriteStateInfoBase.cs
- ScaleTransform.cs
- IntSecurity.cs
- TimeSpanMinutesConverter.cs
- DebuggerAttributes.cs
- ChannelManager.cs
- ApplyHostConfigurationBehavior.cs
- DateTimeUtil.cs
- StringOutput.cs
- KeyedHashAlgorithm.cs
- XmlAnyElementAttribute.cs
- DoubleConverter.cs
- RegexInterpreter.cs
- StorageEntitySetMapping.cs
- DecimalAverageAggregationOperator.cs
- TreeNodeSelectionProcessor.cs
- DataTableNewRowEvent.cs
- CacheEntry.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SamlSecurityTokenAuthenticator.cs
- AdapterUtil.cs
- Token.cs
- PanelStyle.cs
- VBIdentifierTrimConverter.cs
- SuppressIldasmAttribute.cs
- StylusPointPropertyInfo.cs
- DataGridComboBoxColumn.cs
- Throw.cs
- SaveFileDialog.cs
- SecurityRuntime.cs
- HostSecurityManager.cs
- SqlWorkflowInstanceStore.cs
- GeometryGroup.cs
- RunClient.cs
- QilVisitor.cs
- ContainerParagraph.cs
- InheritedPropertyDescriptor.cs
- DoWhile.cs
- OperatingSystem.cs
- RegionInfo.cs
- TextCompositionManager.cs