Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- mediaeventargs.cs
- XmlSchemaNotation.cs
- SqlDataSourceCache.cs
- ConstNode.cs
- ContainerControlDesigner.cs
- InputProcessorProfiles.cs
- ObjectParameterCollection.cs
- LightweightEntityWrapper.cs
- SmtpException.cs
- ScalarRestriction.cs
- ReadOnlyDictionary.cs
- OutputCacheSettings.cs
- XmlAnyElementAttribute.cs
- FormsAuthenticationEventArgs.cs
- BrushValueSerializer.cs
- ConfigurationElementProperty.cs
- RoutingConfiguration.cs
- ClientTarget.cs
- SqlDataSourceSelectingEventArgs.cs
- initElementDictionary.cs
- StrongNamePublicKeyBlob.cs
- ExceptionCollection.cs
- unitconverter.cs
- HtmlAnchor.cs
- WindowsFormsSynchronizationContext.cs
- FrugalMap.cs
- SQLChars.cs
- CodeTypeReference.cs
- VisualStyleInformation.cs
- Hyperlink.cs
- Paragraph.cs
- QilExpression.cs
- DeviceSpecificChoiceCollection.cs
- Stylus.cs
- FatalException.cs
- XPathNavigatorKeyComparer.cs
- WindowsRichEdit.cs
- OrderByQueryOptionExpression.cs
- ErrorTableItemStyle.cs
- NameValueFileSectionHandler.cs
- ipaddressinformationcollection.cs
- ConfigXmlReader.cs
- WebPartVerbsEventArgs.cs
- Listbox.cs
- FuncCompletionCallbackWrapper.cs
- RadioButtonBaseAdapter.cs
- SafeHandles.cs
- SharedStatics.cs
- Message.cs
- MouseEvent.cs
- ServiceInfoCollection.cs
- FixedSOMLineRanges.cs
- KeyValueConfigurationElement.cs
- PriorityQueue.cs
- ExtentKey.cs
- Currency.cs
- StaticDataManager.cs
- Html32TextWriter.cs
- ListItemCollection.cs
- EpmCustomContentDeSerializer.cs
- DataObjectEventArgs.cs
- MailWebEventProvider.cs
- ProxyWebPartManagerDesigner.cs
- UserNameSecurityTokenAuthenticator.cs
- TreeViewImageGenerator.cs
- RoleServiceManager.cs
- XmlObjectSerializer.cs
- GeneralTransform3DTo2D.cs
- SqlTriggerAttribute.cs
- SelectionProcessor.cs
- PropertyBuilder.cs
- ContextStack.cs
- HtmlContainerControl.cs
- HotSpotCollection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- EventlogProvider.cs
- Image.cs
- PathGeometry.cs
- SqlUserDefinedAggregateAttribute.cs
- ZipIOLocalFileBlock.cs
- SoapProtocolReflector.cs
- WebPartExportVerb.cs
- EmbeddedMailObjectsCollection.cs
- SqlDataSourceSelectingEventArgs.cs
- Transform3D.cs
- XamlFilter.cs
- CriticalFinalizerObject.cs
- CodeLinePragma.cs
- IPCCacheManager.cs
- ForeignConstraint.cs
- UrlPropertyAttribute.cs
- SecurityRuntime.cs
- SuppressMergeCheckAttribute.cs
- SqlInternalConnectionTds.cs
- FrameSecurityDescriptor.cs
- TypedDataSetSchemaImporterExtension.cs
- DockPanel.cs
- SqlBulkCopy.cs
- UInt32Converter.cs
- Substitution.cs