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
- ToolStrip.cs
- GPStream.cs
- XmlCustomFormatter.cs
- UriTemplateDispatchFormatter.cs
- Literal.cs
- SettingsAttributes.cs
- HttpApplicationFactory.cs
- ConditionalWeakTable.cs
- SocketPermission.cs
- RuleAttributes.cs
- SynchronizedDispatch.cs
- MaskPropertyEditor.cs
- SettingsPropertyIsReadOnlyException.cs
- ResourceReferenceExpressionConverter.cs
- LowerCaseStringConverter.cs
- TableDetailsCollection.cs
- HiddenField.cs
- WebServiceAttribute.cs
- StylusDownEventArgs.cs
- XmlDataSourceView.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- DataMemberConverter.cs
- DocumentOrderComparer.cs
- SchemaCollectionPreprocessor.cs
- VectorValueSerializer.cs
- TextReader.cs
- TrackingValidationObjectDictionary.cs
- ObjectDataSourceStatusEventArgs.cs
- PageSettings.cs
- DebugHandleTracker.cs
- EpmContentSerializerBase.cs
- SocketPermission.cs
- DecoderNLS.cs
- DesignerSerializationVisibilityAttribute.cs
- ImplicitInputBrush.cs
- QilStrConcat.cs
- ConfigUtil.cs
- TopClause.cs
- SchemaNamespaceManager.cs
- QilTernary.cs
- Evidence.cs
- XmlCountingReader.cs
- MinMaxParagraphWidth.cs
- Int16Storage.cs
- DataControlFieldHeaderCell.cs
- XmlRawWriterWrapper.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ScriptControlDescriptor.cs
- WindowProviderWrapper.cs
- UrlMappingsModule.cs
- COMException.cs
- RestHandler.cs
- HttpListenerPrefixCollection.cs
- TrustSection.cs
- ProtocolsConfigurationEntry.cs
- StreamWriter.cs
- WindowsListViewItemStartMenu.cs
- DateTimePicker.cs
- GeneralTransform3DGroup.cs
- WinOEToolBoxItem.cs
- StickyNote.cs
- TraceContextEventArgs.cs
- ConfigurationStrings.cs
- PrintPreviewGraphics.cs
- SaveFileDialog.cs
- WindowsFormsSectionHandler.cs
- QueryIntervalOp.cs
- ValidationHelpers.cs
- Attachment.cs
- PrintDialog.cs
- Bezier.cs
- TheQuery.cs
- BamlRecordWriter.cs
- HostExecutionContextManager.cs
- DBNull.cs
- SapiRecoContext.cs
- OutOfMemoryException.cs
- TrackingWorkflowEventArgs.cs
- MULTI_QI.cs
- ProfileBuildProvider.cs
- DbProviderFactory.cs
- DecimalConverter.cs
- MemoryRecordBuffer.cs
- ByteFacetDescriptionElement.cs
- FocusManager.cs
- DesignerDataStoredProcedure.cs
- ToolbarAUtomationPeer.cs
- CopyNamespacesAction.cs
- XamlWriter.cs
- PeerName.cs
- RelatedPropertyManager.cs
- ProtocolsConfiguration.cs
- EntityStoreSchemaGenerator.cs
- Stack.cs
- Grant.cs
- CharConverter.cs
- PreservationFileWriter.cs
- ConstantCheck.cs
- Action.cs
- ClientRolePrincipal.cs