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
- ResourceCodeDomSerializer.cs
- safemediahandle.cs
- Argument.cs
- ICspAsymmetricAlgorithm.cs
- PagesSection.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- ReferentialConstraint.cs
- WebPartMovingEventArgs.cs
- DocumentXPathNavigator.cs
- BuildProviderCollection.cs
- AsyncCompletedEventArgs.cs
- InputScope.cs
- LayoutUtils.cs
- ClientScriptManager.cs
- HScrollProperties.cs
- PopOutPanel.cs
- ExeContext.cs
- EventLogInternal.cs
- NodeLabelEditEvent.cs
- UrlAuthFailedErrorFormatter.cs
- IsolatedStoragePermission.cs
- HtmlImage.cs
- ConnectionPointCookie.cs
- ExceptionValidationRule.cs
- HttpWriter.cs
- PseudoWebRequest.cs
- sitestring.cs
- ClipboardData.cs
- ReadOnlyDictionary.cs
- ObjectListFieldsPage.cs
- ContextBase.cs
- TableAutomationPeer.cs
- CustomAttribute.cs
- Aggregates.cs
- Message.cs
- SimpleBitVector32.cs
- BasicExpressionVisitor.cs
- StructuredTypeEmitter.cs
- HttpCacheVaryByContentEncodings.cs
- SchemaNotation.cs
- HwndTarget.cs
- WindowsTooltip.cs
- X509ServiceCertificateAuthenticationElement.cs
- EpmSourceTree.cs
- ViewCellRelation.cs
- UITypeEditor.cs
- NavigateEvent.cs
- ColorPalette.cs
- SqlCommandBuilder.cs
- SaveWorkflowCommand.cs
- ObjectViewFactory.cs
- Validator.cs
- DirectoryNotFoundException.cs
- PersistenceTypeAttribute.cs
- PersonalizationAdministration.cs
- CollectionViewProxy.cs
- ISAPIWorkerRequest.cs
- DataControlFieldCollection.cs
- HttpWebRequest.cs
- mediaeventshelper.cs
- MetadataArtifactLoaderFile.cs
- RandomNumberGenerator.cs
- Nullable.cs
- CompositeControl.cs
- Vector3dCollection.cs
- DbModificationClause.cs
- RenderContext.cs
- Nodes.cs
- ObjectParameter.cs
- FlowDocumentPaginator.cs
- CopyNamespacesAction.cs
- XmlDocument.cs
- XsdSchemaFileEditor.cs
- PresentationAppDomainManager.cs
- DataGridViewCellStyle.cs
- ProcessModelInfo.cs
- NotSupportedException.cs
- SynchronousChannelMergeEnumerator.cs
- RelationshipEndMember.cs
- WebServiceHost.cs
- ExpressionTextBox.xaml.cs
- Type.cs
- DataRecordObjectView.cs
- GlobalizationAssembly.cs
- AdministrationHelpers.cs
- SBCSCodePageEncoding.cs
- AssemblyInfo.cs
- SourceSwitch.cs
- ModelMemberCollection.cs
- FaultReasonText.cs
- ReferencedAssembly.cs
- CompositeCollectionView.cs
- BindingOperations.cs
- PageStatePersister.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- GridViewRowEventArgs.cs
- ContextMenu.cs
- QualifiedCellIdBoolean.cs
- EmptyControlCollection.cs
- UntrustedRecipientException.cs