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
- ColumnMapProcessor.cs
- StylusDevice.cs
- ScriptingRoleServiceSection.cs
- ValidateNames.cs
- DragDropManager.cs
- StorageEndPropertyMapping.cs
- Vector3DIndependentAnimationStorage.cs
- EventsTab.cs
- MaterialCollection.cs
- DynamicResourceExtension.cs
- DelegateHelpers.cs
- XmlSchemaSimpleTypeUnion.cs
- ThreadAbortException.cs
- ResourcePart.cs
- PerspectiveCamera.cs
- ReliableMessagingVersionConverter.cs
- EventLogHandle.cs
- MD5.cs
- LoginView.cs
- ConfigurationElement.cs
- Propagator.Evaluator.cs
- ArithmeticException.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- Geometry.cs
- GiveFeedbackEventArgs.cs
- Cursor.cs
- SettingsPropertyValue.cs
- WebPartVerb.cs
- AudioStateChangedEventArgs.cs
- SkewTransform.cs
- ProcessStartInfo.cs
- WebServiceData.cs
- RetriableClipboard.cs
- SynchronizationValidator.cs
- InlineObject.cs
- ExpressionReplacer.cs
- UnsafeNativeMethods.cs
- SendMailErrorEventArgs.cs
- KeyedHashAlgorithm.cs
- UriTemplateMatch.cs
- StorageEndPropertyMapping.cs
- NavigationCommands.cs
- EpmCustomContentSerializer.cs
- SafeNativeMethods.cs
- IndexedString.cs
- AssertFilter.cs
- SerialPort.cs
- DragStartedEventArgs.cs
- X509ThumbprintKeyIdentifierClause.cs
- PartitionResolver.cs
- DateTimeStorage.cs
- DataGridViewDataErrorEventArgs.cs
- DBConnection.cs
- Pens.cs
- HtmlElementEventArgs.cs
- Activity.cs
- ScrollEventArgs.cs
- PropertyOverridesTypeEditor.cs
- TextSelectionProcessor.cs
- LocalizableAttribute.cs
- RangeContentEnumerator.cs
- StateWorkerRequest.cs
- MiniMapControl.xaml.cs
- SamlSecurityToken.cs
- CommandConverter.cs
- SessionState.cs
- SigningCredentials.cs
- WebPartAddingEventArgs.cs
- SuppressMergeCheckAttribute.cs
- TextElement.cs
- TheQuery.cs
- ConfigurationValidatorBase.cs
- RepeaterCommandEventArgs.cs
- ChildTable.cs
- CompilerResults.cs
- LineInfo.cs
- ConfigurationCollectionAttribute.cs
- TextHidden.cs
- ThrowHelper.cs
- AspCompat.cs
- DoubleKeyFrameCollection.cs
- XmlLanguage.cs
- GridViewSortEventArgs.cs
- SecurityDocument.cs
- RecordConverter.cs
- MembershipSection.cs
- __Error.cs
- DataPagerFieldCollection.cs
- EntityViewContainer.cs
- WebDescriptionAttribute.cs
- DataRelation.cs
- _ConnectStream.cs
- SafeNativeMethodsMilCoreApi.cs
- DiagnosticsConfigurationHandler.cs
- SrgsSubset.cs
- SerialErrors.cs
- XmlEventCache.cs
- StructuredTypeInfo.cs
- GCHandleCookieTable.cs
- ToolboxItemImageConverter.cs