ContainerFilterService.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;
        } 
    } 
}


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK