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
- SynchronizationContext.cs
- AdvancedBindingEditor.cs
- TableStyle.cs
- ColumnPropertiesGroup.cs
- DataGridViewCellCollection.cs
- PtsHost.cs
- HtmlEncodedRawTextWriter.cs
- SpeechRecognitionEngine.cs
- FileCodeGroup.cs
- ObsoleteAttribute.cs
- ILGenerator.cs
- CalloutQueueItem.cs
- GridViewAutoFormat.cs
- WebServiceTypeData.cs
- GridViewRowCollection.cs
- IisTraceWebEventProvider.cs
- CollectionBuilder.cs
- TemplateComponentConnector.cs
- PageThemeCodeDomTreeGenerator.cs
- ProcessModelInfo.cs
- ElementHost.cs
- PasswordPropertyTextAttribute.cs
- ReaderWriterLockWrapper.cs
- SamlAssertionKeyIdentifierClause.cs
- dsa.cs
- ObjectManager.cs
- DeflateStream.cs
- ObservableDictionary.cs
- HttpWriter.cs
- SQLResource.cs
- ClassGenerator.cs
- UnmanagedMemoryStream.cs
- XslAstAnalyzer.cs
- ValueQuery.cs
- StreamingContext.cs
- CheckBox.cs
- ConfigurationPermission.cs
- Odbc32.cs
- InsufficientExecutionStackException.cs
- ConfigurationStrings.cs
- WeakHashtable.cs
- SQLBytesStorage.cs
- ConfigXmlSignificantWhitespace.cs
- CachedPathData.cs
- AdCreatedEventArgs.cs
- HostedElements.cs
- OleDbCommand.cs
- DocumentSequenceHighlightLayer.cs
- ExecutedRoutedEventArgs.cs
- PanelDesigner.cs
- FolderBrowserDialogDesigner.cs
- IndexedGlyphRun.cs
- DataExpression.cs
- RectKeyFrameCollection.cs
- WebPartRestoreVerb.cs
- FloaterParaClient.cs
- PartialClassGenerationTaskInternal.cs
- DesignTimeParseData.cs
- DataGridParentRows.cs
- PermissionListSet.cs
- DoubleConverter.cs
- RC2CryptoServiceProvider.cs
- ExpressionBuilderCollection.cs
- RightsManagementInformation.cs
- RawStylusInputCustomDataList.cs
- CompositeClientFormatter.cs
- CodeDirectionExpression.cs
- TableLayoutSettings.cs
- FlowDocumentPage.cs
- PngBitmapEncoder.cs
- DataBoundControl.cs
- OdbcConnection.cs
- SelectingProviderEventArgs.cs
- InlineUIContainer.cs
- ContractSearchPattern.cs
- Context.cs
- WebPartCancelEventArgs.cs
- RoutingChannelExtension.cs
- XmlWrappingWriter.cs
- CellQuery.cs
- Bezier.cs
- ComAdminWrapper.cs
- FramingFormat.cs
- TripleDESCryptoServiceProvider.cs
- PixelFormats.cs
- ExpressionBuilderContext.cs
- DashStyle.cs
- RankException.cs
- MenuRenderer.cs
- ParagraphResult.cs
- CodeDelegateCreateExpression.cs
- CredentialCache.cs
- EntityDataSourceViewSchema.cs
- Brush.cs
- Accessible.cs
- SmiTypedGetterSetter.cs
- InvalidDataException.cs
- LoginDesigner.cs
- EntityDataSource.cs
- PageParserFilter.cs