ContainerFilterService.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ContainerFilterService.cs / 1305376 / 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.
                        

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