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
- AdRotatorDesigner.cs
- BindingValueChangedEventArgs.cs
- ParallelRangeManager.cs
- ComponentSerializationService.cs
- SafeTimerHandle.cs
- HashHelper.cs
- CodeCompiler.cs
- StorageEntitySetMapping.cs
- GenericWebPart.cs
- GatewayIPAddressInformationCollection.cs
- UnsafeNativeMethodsTablet.cs
- ParserContext.cs
- Timer.cs
- X509Utils.cs
- ResourceDescriptionAttribute.cs
- MobileUITypeEditor.cs
- MetafileHeaderWmf.cs
- TraceRecord.cs
- Crypto.cs
- FormattedText.cs
- HScrollProperties.cs
- StrongNameMembershipCondition.cs
- TextModifierScope.cs
- GroupLabel.cs
- TextBreakpoint.cs
- ObjectListTitleAttribute.cs
- SemaphoreSecurity.cs
- AnimatedTypeHelpers.cs
- Material.cs
- SQLByte.cs
- Vector3DIndependentAnimationStorage.cs
- StringValidator.cs
- UnsafeNativeMethods.cs
- MultiBindingExpression.cs
- FileDetails.cs
- DictionaryEntry.cs
- WebBrowserSiteBase.cs
- SqlCommandBuilder.cs
- EntityDesignerBuildProvider.cs
- ManagementException.cs
- AlternationConverter.cs
- HttpListener.cs
- xmlsaver.cs
- CompilerCollection.cs
- PhysicalOps.cs
- StaticFileHandler.cs
- RSAOAEPKeyExchangeFormatter.cs
- SourceInterpreter.cs
- XslTransform.cs
- LinkDescriptor.cs
- TypeGeneratedEventArgs.cs
- PackWebRequestFactory.cs
- CompiledRegexRunnerFactory.cs
- TextEditorMouse.cs
- ProvidePropertyAttribute.cs
- streamingZipPartStream.cs
- X509WindowsSecurityToken.cs
- TransformProviderWrapper.cs
- TemplatedWizardStep.cs
- MobileUserControl.cs
- HelpKeywordAttribute.cs
- IDQuery.cs
- COM2ComponentEditor.cs
- ForeignConstraint.cs
- ConfigurationStrings.cs
- SafeEventLogWriteHandle.cs
- SystemTcpConnection.cs
- MetadataProperty.cs
- BooleanExpr.cs
- CmsInterop.cs
- RewritingValidator.cs
- httpserverutility.cs
- AndMessageFilterTable.cs
- HtmlUtf8RawTextWriter.cs
- TransformerInfo.cs
- ClrProviderManifest.cs
- TransformPattern.cs
- CachedFontFace.cs
- RegionIterator.cs
- TextInfo.cs
- DefaultTextStore.cs
- Line.cs
- PenCursorManager.cs
- WindowsListViewGroupHelper.cs
- TextStore.cs
- ConfigXmlComment.cs
- BehaviorEditorPart.cs
- DateBoldEvent.cs
- CalendarAutoFormat.cs
- processwaithandle.cs
- ButtonChrome.cs
- ResourcePermissionBase.cs
- DrawingContextDrawingContextWalker.cs
- XmlSerializerSection.cs
- QueryCacheEntry.cs
- ThreadPoolTaskScheduler.cs
- DataSourceExpression.cs
- ValidatorCollection.cs
- DBCommand.cs
- FileIOPermission.cs