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
- FieldBuilder.cs
- httpapplicationstate.cs
- WebPartDisplayModeEventArgs.cs
- xmlfixedPageInfo.cs
- AvTraceDetails.cs
- GeneralTransform3DGroup.cs
- PersonalizationState.cs
- EntityStoreSchemaGenerator.cs
- SimpleBitVector32.cs
- ToolZone.cs
- ApplicationGesture.cs
- RemotingConfigParser.cs
- GridEntryCollection.cs
- RegionInfo.cs
- UnmanagedMemoryStreamWrapper.cs
- TypeCacheManager.cs
- ActiveDocumentEvent.cs
- ConstraintStruct.cs
- OrderedDictionaryStateHelper.cs
- CodeParameterDeclarationExpression.cs
- WorkflowInstanceRecord.cs
- ObjectComplexPropertyMapping.cs
- XslException.cs
- FileVersion.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- Atom10FormatterFactory.cs
- RoleManagerModule.cs
- Propagator.cs
- FamilyCollection.cs
- SecurityPolicyVersion.cs
- ObjectConverter.cs
- Util.cs
- RuntimeWrappedException.cs
- CodeSnippetExpression.cs
- GPPOINTF.cs
- Formatter.cs
- adornercollection.cs
- WorkflowQueueInfo.cs
- ObjectQuery.cs
- XmlWriterTraceListener.cs
- Type.cs
- SecurityTokenResolver.cs
- DeclarativeExpressionConditionDeclaration.cs
- Grid.cs
- StoreAnnotationsMap.cs
- HostProtectionException.cs
- serverconfig.cs
- BroadcastEventHelper.cs
- WinEventHandler.cs
- ImageInfo.cs
- SerializationFieldInfo.cs
- ParsedAttributeCollection.cs
- TableItemProviderWrapper.cs
- TransformerTypeCollection.cs
- TransformedBitmap.cs
- ArrayListCollectionBase.cs
- URL.cs
- AutoResizedEvent.cs
- FontUnit.cs
- DataMisalignedException.cs
- SafeArrayTypeMismatchException.cs
- KeysConverter.cs
- AutomationPropertyInfo.cs
- XmlSchemaAny.cs
- updatecommandorderer.cs
- CompiledQueryCacheKey.cs
- SpeechSynthesizer.cs
- ContourSegment.cs
- DebugViewWriter.cs
- SessionParameter.cs
- NavigateEvent.cs
- StandardRuntimeEnumValidatorAttribute.cs
- DefaultTypeArgumentAttribute.cs
- TimeSpanValidatorAttribute.cs
- BamlStream.cs
- IPipelineRuntime.cs
- StateDesigner.Helpers.cs
- TypeToArgumentTypeConverter.cs
- JsonByteArrayDataContract.cs
- GridToolTip.cs
- DocumentPageViewAutomationPeer.cs
- Point4DValueSerializer.cs
- Renderer.cs
- RelatedEnd.cs
- safelinkcollection.cs
- ActivityDesignerHelper.cs
- Int32Rect.cs
- ToolbarAUtomationPeer.cs
- _SslStream.cs
- TextFormatterContext.cs
- CancelRequestedRecord.cs
- PrintController.cs
- TextClipboardData.cs
- HttpRuntimeSection.cs
- SchemaImporterExtensionsSection.cs
- TransformCryptoHandle.cs
- FileLoadException.cs
- TextViewBase.cs
- TableAdapterManagerNameHandler.cs
- ValidationSettings.cs