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
- InternalsVisibleToAttribute.cs
- HttpCapabilitiesSectionHandler.cs
- TraceSection.cs
- ImageSource.cs
- BaseTypeViewSchema.cs
- BinaryUtilClasses.cs
- ImageCodecInfo.cs
- ViewGenResults.cs
- XsdBuilder.cs
- RowTypePropertyElement.cs
- EditorAttributeInfo.cs
- ClientScriptManager.cs
- SourceCollection.cs
- SimpleBitVector32.cs
- ColumnTypeConverter.cs
- RowsCopiedEventArgs.cs
- NoneExcludedImageIndexConverter.cs
- DataGridViewSelectedColumnCollection.cs
- BehaviorEditorPart.cs
- AliasedSlot.cs
- XmlDocument.cs
- _TLSstream.cs
- FormConverter.cs
- MetadataItemEmitter.cs
- InternalConfigSettingsFactory.cs
- DecimalAnimationBase.cs
- PropertyStore.cs
- _OSSOCK.cs
- AspNetSynchronizationContext.cs
- GridViewUpdatedEventArgs.cs
- HTMLTextWriter.cs
- OledbConnectionStringbuilder.cs
- CodeSnippetTypeMember.cs
- HtmlElement.cs
- SignedXml.cs
- SqlGatherConsumedAliases.cs
- COM2IDispatchConverter.cs
- VectorCollectionConverter.cs
- TypeSystem.cs
- ToolStripTextBox.cs
- HyperLink.cs
- ResourceCategoryAttribute.cs
- SafeEventHandle.cs
- QilGeneratorEnv.cs
- ArrayWithOffset.cs
- CompensationHandlingFilter.cs
- COM2ExtendedBrowsingHandler.cs
- PlatformCulture.cs
- SmtpFailedRecipientException.cs
- GenericsInstances.cs
- EntityTransaction.cs
- MetricEntry.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- HttpCookiesSection.cs
- TextTreeTextElementNode.cs
- OSFeature.cs
- ExtentKey.cs
- Bits.cs
- SystemPens.cs
- SerializationException.cs
- util.cs
- WmlMobileTextWriter.cs
- DataBindingCollection.cs
- XmlWriterSettings.cs
- XmlHierarchicalEnumerable.cs
- MenuItemBinding.cs
- EventSchemaTraceListener.cs
- XPathAncestorQuery.cs
- Table.cs
- CheckableControlBaseAdapter.cs
- InputManager.cs
- SemaphoreFullException.cs
- CompilerCollection.cs
- BaseInfoTable.cs
- ValidationErrorCollection.cs
- panel.cs
- DocumentOrderComparer.cs
- ShortcutKeysEditor.cs
- GatewayDefinition.cs
- DirectoryNotFoundException.cs
- WebFaultClientMessageInspector.cs
- TrackingCondition.cs
- WebInvokeAttribute.cs
- XsltContext.cs
- DecoratedNameAttribute.cs
- ResourceType.cs
- HttpListenerRequest.cs
- CollectionBuilder.cs
- ThreadSafeList.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- DBConcurrencyException.cs
- SortedDictionary.cs
- OleDbDataAdapter.cs
- UrlMappingsSection.cs
- Paragraph.cs
- CodeDomLoader.cs
- LoaderAllocator.cs
- BindingsCollection.cs
- StyleTypedPropertyAttribute.cs
- BindingNavigatorDesigner.cs