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
- Vector3DValueSerializer.cs
- OwnerDrawPropertyBag.cs
- PtsHost.cs
- HttpEncoderUtility.cs
- KeyValueInternalCollection.cs
- SmtpMail.cs
- FontNamesConverter.cs
- MissingFieldException.cs
- SmiContextFactory.cs
- XmlTypeMapping.cs
- AccessorTable.cs
- mansign.cs
- OdbcConnectionString.cs
- TreeViewAutomationPeer.cs
- safesecurityhelperavalon.cs
- RectangleHotSpot.cs
- RpcAsyncResult.cs
- streamingZipPartStream.cs
- GreenMethods.cs
- FontDriver.cs
- ThicknessConverter.cs
- login.cs
- WindowsEditBox.cs
- InstanceData.cs
- ImageInfo.cs
- TableItemPattern.cs
- HScrollBar.cs
- MessageQuerySet.cs
- TextRunProperties.cs
- SqlClientPermission.cs
- codemethodreferenceexpression.cs
- FileRecordSequence.cs
- CreateUserWizard.cs
- ControlBindingsConverter.cs
- ActionFrame.cs
- GenerateScriptTypeAttribute.cs
- TransformerConfigurationWizardBase.cs
- ObjectTokenCategory.cs
- CatalogZone.cs
- ValueConversionAttribute.cs
- TriggerBase.cs
- Logging.cs
- SeekableMessageNavigator.cs
- RuntimeWrappedException.cs
- ColorBlend.cs
- ValueExpressions.cs
- TextHidden.cs
- ClrProviderManifest.cs
- GenericEnumConverter.cs
- CodeCastExpression.cs
- activationcontext.cs
- ToolStripComboBox.cs
- NavigateEvent.cs
- CacheDependency.cs
- ExpressionQuoter.cs
- EditingCoordinator.cs
- ValidationRuleCollection.cs
- SharedDp.cs
- Helpers.cs
- PermissionToken.cs
- EdmItemError.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- MetadataItem.cs
- MenuItem.cs
- DeclarationUpdate.cs
- BitmapEffect.cs
- DelegateArgumentReference.cs
- EmbeddedMailObject.cs
- Propagator.JoinPropagator.cs
- BitmapFrame.cs
- Renderer.cs
- FunctionImportMapping.cs
- SqlStream.cs
- XmlComplianceUtil.cs
- ParameterCollectionEditor.cs
- ClientTargetSection.cs
- HtmlElement.cs
- SizeConverter.cs
- ApplicationServiceHelper.cs
- SynchronizedDispatch.cs
- DurableDispatcherAddressingFault.cs
- ArgumentValidation.cs
- MemberAssignment.cs
- UnicastIPAddressInformationCollection.cs
- OperationFormatStyle.cs
- RegexMatch.cs
- EpmHelper.cs
- DispatchChannelSink.cs
- DataObjectPastingEventArgs.cs
- TableLayout.cs
- TabletCollection.cs
- TimeSpanMinutesConverter.cs
- SqlDataSourceEnumerator.cs
- DateTimeFormat.cs
- ModifiableIteratorCollection.cs
- ClientEventManager.cs
- WsrmMessageInfo.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- AnonymousIdentificationSection.cs
- CodeExporter.cs