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
- StreamGeometry.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- ValidateNames.cs
- GridSplitterAutomationPeer.cs
- DocumentSchemaValidator.cs
- UIElementPropertyUndoUnit.cs
- Emitter.cs
- MimeMapping.cs
- HttpProfileBase.cs
- CompiledQuery.cs
- DataPagerField.cs
- ADMembershipUser.cs
- RegexCompilationInfo.cs
- XmlBufferReader.cs
- Ipv6Element.cs
- EventListener.cs
- SqlNodeTypeOperators.cs
- SQLRoleProvider.cs
- OperatingSystemVersionCheck.cs
- ThrowOnMultipleAssignment.cs
- Descriptor.cs
- Logging.cs
- TextPenaltyModule.cs
- DbConnectionPoolIdentity.cs
- RedistVersionInfo.cs
- HttpContext.cs
- TreeViewImageIndexConverter.cs
- MaskedTextBox.cs
- ThreadExceptionEvent.cs
- ObjectParameterCollection.cs
- SoapObjectReader.cs
- ListDictionaryInternal.cs
- _NtlmClient.cs
- DesignerActionUIStateChangeEventArgs.cs
- assemblycache.cs
- IfJoinedCondition.cs
- CodeConditionStatement.cs
- PenLineCapValidation.cs
- StateChangeEvent.cs
- RotateTransform3D.cs
- XmlSerializerSection.cs
- BinaryObjectInfo.cs
- ArraySortHelper.cs
- ProfilePropertySettingsCollection.cs
- ScrollViewerAutomationPeer.cs
- NumberFunctions.cs
- LineBreakRecord.cs
- DBBindings.cs
- BasicCommandTreeVisitor.cs
- FixUpCollection.cs
- XmlWriterSettings.cs
- Figure.cs
- InkCanvasFeedbackAdorner.cs
- SHA256Managed.cs
- DurableDispatcherAddressingFault.cs
- CounterCreationDataCollection.cs
- SerializerDescriptor.cs
- PropertiesTab.cs
- DateTimeFormatInfoScanner.cs
- StructuralComparisons.cs
- SerializationInfoEnumerator.cs
- LayoutTableCell.cs
- WebPartsSection.cs
- NumberFormatter.cs
- Icon.cs
- XNodeNavigator.cs
- MultiView.cs
- AnnotationAuthorChangedEventArgs.cs
- EntityDataSourceColumn.cs
- Sorting.cs
- XPathSelfQuery.cs
- XmlTypeAttribute.cs
- TargetException.cs
- WebPartActionVerb.cs
- TypeGenericEnumerableViewSchema.cs
- AsyncOperation.cs
- MorphHelper.cs
- LocationReferenceEnvironment.cs
- FixedSOMTable.cs
- remotingproxy.cs
- SafeSystemMetrics.cs
- Point3DConverter.cs
- RectAnimationClockResource.cs
- BitStack.cs
- Composition.cs
- ConcatQueryOperator.cs
- ConfigViewGenerator.cs
- ValueType.cs
- CancelEventArgs.cs
- COM2Enum.cs
- LocationUpdates.cs
- DataTrigger.cs
- InputScope.cs
- KeyEventArgs.cs
- SaveFileDialog.cs
- DropSource.cs
- SingleObjectCollection.cs
- SmiRecordBuffer.cs
- ExitEventArgs.cs
- WSTrust.cs