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
- CommandLineParser.cs
- SpeakCompletedEventArgs.cs
- LoginDesigner.cs
- OrderPreservingPipeliningMergeHelper.cs
- ProfileInfo.cs
- ProtocolsConfiguration.cs
- PropertyStore.cs
- shaperfactoryquerycacheentry.cs
- ExpressionNode.cs
- ResourceManager.cs
- StringFormat.cs
- InputMethodStateChangeEventArgs.cs
- NullReferenceException.cs
- XamlReaderConstants.cs
- EntityDataSourceWrapperCollection.cs
- XmlSiteMapProvider.cs
- PathFigureCollection.cs
- RequiredAttributeAttribute.cs
- LoadWorkflowAsyncResult.cs
- Regex.cs
- Command.cs
- WebPartConnectionsCancelVerb.cs
- PtsPage.cs
- BehaviorEditorPart.cs
- PersonalizationEntry.cs
- NodeLabelEditEvent.cs
- ServiceModelReg.cs
- SwitchAttribute.cs
- WorkflowQueuingService.cs
- RuntimeConfig.cs
- ColumnMapProcessor.cs
- CodeExpressionCollection.cs
- PrivacyNoticeBindingElementImporter.cs
- SystemResources.cs
- CancellationTokenRegistration.cs
- SubMenuStyle.cs
- MsmqOutputSessionChannel.cs
- DynamicResourceExtension.cs
- BooleanSwitch.cs
- Utils.cs
- StaticContext.cs
- Journaling.cs
- PointCollection.cs
- StreamHelper.cs
- HostedElements.cs
- SoapCodeExporter.cs
- x509utils.cs
- HandleCollector.cs
- SystemColors.cs
- _AcceptOverlappedAsyncResult.cs
- WebPartManager.cs
- HiddenFieldPageStatePersister.cs
- GridViewEditEventArgs.cs
- RawTextInputReport.cs
- TypeUtils.cs
- HitTestResult.cs
- ReversePositionQuery.cs
- UrlMapping.cs
- WebPartPersonalization.cs
- XmlSchemas.cs
- datacache.cs
- TdsParserHelperClasses.cs
- ClassImporter.cs
- ObjectItemCachedAssemblyLoader.cs
- MouseCaptureWithinProperty.cs
- Rfc2898DeriveBytes.cs
- PlainXmlSerializer.cs
- PropertyDescriptorCollection.cs
- XmlNamedNodeMap.cs
- AnnotationDocumentPaginator.cs
- FormsAuthenticationCredentials.cs
- Queue.cs
- LinkDesigner.cs
- SignedXml.cs
- AssociationProvider.cs
- DescendantOverDescendantQuery.cs
- TypeForwardedToAttribute.cs
- WebServiceBindingAttribute.cs
- ToolStripArrowRenderEventArgs.cs
- FileFormatException.cs
- ValueExpressions.cs
- XmlSignificantWhitespace.cs
- HttpProfileBase.cs
- AsymmetricSignatureDeformatter.cs
- HttpClientCertificate.cs
- ADConnectionHelper.cs
- DataGridViewLayoutData.cs
- AnnotationStore.cs
- XmlBufferReader.cs
- ArraySubsetEnumerator.cs
- BeginEvent.cs
- FileIOPermission.cs
- SoapHeaderAttribute.cs
- Point.cs
- ApplicationInterop.cs
- UriTemplateEquivalenceComparer.cs
- DeploymentSection.cs
- PLINQETWProvider.cs
- SqlNotificationEventArgs.cs
- ProgressBarAutomationPeer.cs