ClientSettings.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / UIAutomationClient / System / Windows / Automation / ClientSettings.cs / 1 / ClientSettings.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// 
// Description: Facade class that contains client configutation options (eg. proxies) 
//
//--------------------------------------------------------------------------- 

using System.Windows.Automation;
using System;
using System.Runtime.InteropServices; 
using System.Security.Permissions;
using System.Reflection; 
using System.Diagnostics; 
using MS.Internal.Automation;
using MS.Win32; 

namespace System.Windows.Automation
{
    ///  
    /// Class containing methods for configuring UIAutomation.
    ///  
#if (INTERNAL_COMPILE) 
    internal static class ClientSettings
#else 
    public static class ClientSettings
#endif
    {
        //----------------------------------------------------- 
        //
        //  Public Methods 
        // 
        //-----------------------------------------------------
 
        #region Public Methods

        #region Proxies / Client-side providers
 
        /// 
        /// Load client-side providers from specified assembly 
        ///  
        /// 
        /// Specifies the assembly to load client-side providers from. 
        /// 
        public static void RegisterClientSideProviderAssembly(AssemblyName assemblyName)
        {
            Misc.ValidateArgumentNonNull( assemblyName, "assemblyName" ); 

            ProxyManager.RegisterProxyAssembly( assemblyName ); 
        } 

        ///  
        /// Register client-side providers to use on HWND-based controls.
        /// 
        /// Array of ClientSideProviderDescription structs that specify window class names and factory delegate
        public static void RegisterClientSideProviders(ClientSideProviderDescription[] clientSideProviderDescription) 
        {
            Misc.ValidateArgumentNonNull(clientSideProviderDescription, "clientSideProviderDescription "); 
 
            ProxyManager.RegisterWindowHandlers(clientSideProviderDescription);
        } 

        #endregion Proxies / Client-side providers

        #endregion Public Methods 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

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