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
- FrameworkElementAutomationPeer.cs
- BuildManagerHost.cs
- InitializingNewItemEventArgs.cs
- AddressingVersion.cs
- Invariant.cs
- SqlRecordBuffer.cs
- IconBitmapDecoder.cs
- EdmType.cs
- ZipPackagePart.cs
- ServiceProviders.cs
- EntityTypeEmitter.cs
- ResourcePermissionBaseEntry.cs
- ApplicationFileParser.cs
- TrackingWorkflowEventArgs.cs
- SqlColumnizer.cs
- LexicalChunk.cs
- SqlDependencyListener.cs
- wmiprovider.cs
- ContextMenuStrip.cs
- BypassElement.cs
- EdgeModeValidation.cs
- SemaphoreFullException.cs
- EncoderReplacementFallback.cs
- MetadataArtifactLoaderCompositeFile.cs
- CodeAccessPermission.cs
- PropertyDescriptorGridEntry.cs
- HttpListenerException.cs
- WebEvents.cs
- Claim.cs
- RecordsAffectedEventArgs.cs
- JoinSymbol.cs
- LocalizeDesigner.cs
- SqlMetaData.cs
- LOSFormatter.cs
- DesignerSerializerAttribute.cs
- TagMapInfo.cs
- OAVariantLib.cs
- GreenMethods.cs
- SchemaUtility.cs
- ConnectionStringSettings.cs
- XPathNodeList.cs
- FolderNameEditor.cs
- Base64Decoder.cs
- SecurityTokenException.cs
- ProfessionalColorTable.cs
- XmlDataDocument.cs
- XmlSignatureProperties.cs
- MobileListItem.cs
- FormsAuthentication.cs
- ConfigurationSettings.cs
- MatchNoneMessageFilter.cs
- HttpGetProtocolReflector.cs
- StoreItemCollection.Loader.cs
- DbConnectionInternal.cs
- SoapAttributeAttribute.cs
- DataSpaceManager.cs
- StyleConverter.cs
- ViewCellRelation.cs
- CodeMemberEvent.cs
- TextWriterTraceListener.cs
- XamlStyleSerializer.cs
- ComplexPropertyEntry.cs
- DateTimeFormat.cs
- DataPagerFieldCommandEventArgs.cs
- LocationSectionRecord.cs
- RsaSecurityTokenAuthenticator.cs
- MimeTextImporter.cs
- GlobalDataBindingHandler.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CultureInfoConverter.cs
- _RegBlobWebProxyDataBuilder.cs
- WinCategoryAttribute.cs
- HtmlSelect.cs
- FloaterParaClient.cs
- ExpressionConverter.cs
- EmptyEnumerable.cs
- ObjectStateFormatter.cs
- TerminatorSinks.cs
- ControlCommandSet.cs
- RolePrincipal.cs
- ValidationHelper.cs
- MimeXmlReflector.cs
- RoutedEventValueSerializer.cs
- BatchServiceHost.cs
- SpeechDetectedEventArgs.cs
- ScopeElement.cs
- EntityTemplateFactory.cs
- FixedPage.cs
- OrderingInfo.cs
- _SSPIWrapper.cs
- FontSource.cs
- SqlXml.cs
- IISMapPath.cs
- XmlTypeMapping.cs
- DataTableCollection.cs
- TypeInitializationException.cs
- DocumentPageTextView.cs
- PieceDirectory.cs
- CollectionMarkupSerializer.cs
- sqlser.cs