Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / ContainerFilterService.cs / 1 / ContainerFilterService.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// The Container and NestedContainer classes will call GetService for ContainerFilterService
/// each time they need to construct a Components collection for return to a caller.
/// ContainerFilterService may return an updated collection of components. This allows
/// an external service to modify the view of components that are returned from a container.
///
[HostProtection(SharedState = true)]
public abstract class ContainerFilterService
{
///
///
protected ContainerFilterService() {
}
///
/// Filters the components collection by optionally returning a new, modified collection.
/// The default implementation returns the input collection, thereby performing no filtering.
///
public virtual ComponentCollection FilterComponents(ComponentCollection components) {
return components;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// The Container and NestedContainer classes will call GetService for ContainerFilterService
/// each time they need to construct a Components collection for return to a caller.
/// ContainerFilterService may return an updated collection of components. This allows
/// an external service to modify the view of components that are returned from a container.
///
[HostProtection(SharedState = true)]
public abstract class ContainerFilterService
{
///
///
protected ContainerFilterService() {
}
///
/// Filters the components collection by optionally returning a new, modified collection.
/// The default implementation returns the input collection, thereby performing no filtering.
///
public virtual ComponentCollection FilterComponents(ComponentCollection components) {
return components;
}
}
}
// 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
- ConfigDefinitionUpdates.cs
- FillErrorEventArgs.cs
- ChtmlLinkAdapter.cs
- ParseHttpDate.cs
- SqlBooleanizer.cs
- HttpRuntimeSection.cs
- HttpRequestCacheValidator.cs
- SqlLiftWhereClauses.cs
- serverconfig.cs
- DataBinder.cs
- StandardOleMarshalObject.cs
- DataStreams.cs
- LineUtil.cs
- PageThemeParser.cs
- Separator.cs
- CheckBoxField.cs
- SecurityManager.cs
- shaperfactoryquerycacheentry.cs
- HandoffBehavior.cs
- WindowsToolbarAsMenu.cs
- DrawingDrawingContext.cs
- RegistryKey.cs
- MatrixTransform.cs
- ListChangedEventArgs.cs
- HelpProvider.cs
- SiteMapNode.cs
- CommandValueSerializer.cs
- RelatedView.cs
- MultipleViewPattern.cs
- OracleBinary.cs
- DataObjectCopyingEventArgs.cs
- LinqDataSourceView.cs
- ControlAdapter.cs
- EmbeddedMailObject.cs
- ListParaClient.cs
- StringValidator.cs
- DelegatedStream.cs
- BodyGlyph.cs
- ChildDocumentBlock.cs
- TreeNodeStyle.cs
- ListMarkerLine.cs
- XmlTextAttribute.cs
- LicFileLicenseProvider.cs
- DoubleAnimationBase.cs
- Single.cs
- FontDifferentiator.cs
- KnowledgeBase.cs
- DesignerDataView.cs
- InstanceDataCollectionCollection.cs
- ObjectSelectorEditor.cs
- XPathMultyIterator.cs
- TypeDescriptor.cs
- FileFormatException.cs
- ResolveNameEventArgs.cs
- UpdateTracker.cs
- TCEAdapterGenerator.cs
- ViewPort3D.cs
- RefreshPropertiesAttribute.cs
- WebSysDefaultValueAttribute.cs
- OleDbPropertySetGuid.cs
- BaseTemplateCodeDomTreeGenerator.cs
- EventLogPropertySelector.cs
- XmlNodeChangedEventManager.cs
- ProjectedSlot.cs
- RowToParametersTransformer.cs
- ResourceIDHelper.cs
- GenerateTemporaryAssemblyTask.cs
- PageMediaSize.cs
- base64Transforms.cs
- DataGridViewRowCollection.cs
- AncillaryOps.cs
- MeasureItemEvent.cs
- DbTransaction.cs
- SimpleHandlerFactory.cs
- BackStopAuthenticationModule.cs
- SortQuery.cs
- TypeValidationEventArgs.cs
- StatusBarPanel.cs
- SoapIgnoreAttribute.cs
- BrushConverter.cs
- EventLogTraceListener.cs
- RegexCode.cs
- HtmlTableCell.cs
- DirectoryGroupQuery.cs
- XmlAnyElementAttribute.cs
- SafeWaitHandle.cs
- EditorZone.cs
- WeakReferenceList.cs
- BreakSafeBase.cs
- GridSplitter.cs
- PagedDataSource.cs
- FrameworkContentElementAutomationPeer.cs
- TableParagraph.cs
- ContentFileHelper.cs
- VScrollBar.cs
- MemoryRecordBuffer.cs
- FixedNode.cs
- FixedTextView.cs
- XmlValidatingReaderImpl.cs
- MsmqInputSessionChannelListener.cs