Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / Design / ComponentEvent.cs / 1 / 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
- ContractAdapter.cs
- ElementUtil.cs
- SimpleModelProvider.cs
- SchemaImporterExtension.cs
- ActivityExecutionContext.cs
- IntranetCredentialPolicy.cs
- TextBoxAutomationPeer.cs
- HtmlInputControl.cs
- MatrixAnimationBase.cs
- InfoCardPolicy.cs
- AcceleratedTokenAuthenticator.cs
- MatrixUtil.cs
- SpecialTypeDataContract.cs
- CorrelationManager.cs
- SiteMembershipCondition.cs
- Calendar.cs
- AddressAlreadyInUseException.cs
- HorizontalAlignConverter.cs
- ContentControl.cs
- RuntimeArgumentHandle.cs
- SharedConnectionListener.cs
- SQLInt32Storage.cs
- OletxResourceManager.cs
- TypeContext.cs
- SerializationException.cs
- ProxyGenerationError.cs
- Parser.cs
- PagedDataSource.cs
- IDispatchConstantAttribute.cs
- DrawingContextDrawingContextWalker.cs
- FieldToken.cs
- DataObjectFieldAttribute.cs
- StaticExtension.cs
- PersonalizationState.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- ASCIIEncoding.cs
- UdpChannelFactory.cs
- ToolStripContainer.cs
- SqlDataSourceCommandEventArgs.cs
- DESCryptoServiceProvider.cs
- MatrixUtil.cs
- Axis.cs
- BindingCollection.cs
- PasswordDeriveBytes.cs
- loginstatus.cs
- SByte.cs
- ProjectedSlot.cs
- DebugInfoExpression.cs
- List.cs
- StringStorage.cs
- WebPartEditorOkVerb.cs
- WithParamAction.cs
- EntityCommandCompilationException.cs
- RichTextBoxConstants.cs
- TreeView.cs
- DocumentPageViewAutomationPeer.cs
- XmlBinaryReader.cs
- AttachedPropertyMethodSelector.cs
- XsltOutput.cs
- ParameterRetriever.cs
- ActivitySurrogate.cs
- MachinePropertyVariants.cs
- MemberCollection.cs
- SchemaTableColumn.cs
- AttributeCollection.cs
- PageEventArgs.cs
- ReliableRequestSessionChannel.cs
- ToolStripSeparator.cs
- XmlElement.cs
- WindowsAuthenticationEventArgs.cs
- FieldToken.cs
- InvalidWorkflowException.cs
- MailSettingsSection.cs
- XmlDownloadManager.cs
- SchemaElement.cs
- BookmarkUndoUnit.cs
- XmlHelper.cs
- RotateTransform3D.cs
- MatrixAnimationBase.cs
- Scene3D.cs
- EdmType.cs
- XamlSerializerUtil.cs
- CodeAccessPermission.cs
- Border.cs
- SupportingTokenBindingElement.cs
- CleanUpVirtualizedItemEventArgs.cs
- CompilerInfo.cs
- InvokeHandlers.cs
- Rule.cs
- InputProcessorProfilesLoader.cs
- WS2007FederationHttpBindingCollectionElement.cs
- Attributes.cs
- CipherData.cs
- BevelBitmapEffect.cs
- TagMapCollection.cs
- GetMemberBinder.cs
- BindingUtils.cs
- EdmProperty.cs
- HtmlTitle.cs
- EDesignUtil.cs