System.Net.GlobalProxySelection.GetEmptyWebProxy C# (CSharp) Method

GetEmptyWebProxy() public static method

public static GetEmptyWebProxy ( ) : IWebProxy
return IWebProxy
        public static IWebProxy GetEmptyWebProxy()
        {
            return new EmptyWebProxy();
        }

Usage Example

Esempio n. 1
0
        //
        // FindServicePoint - Query using an Uri string for a given ServerPoint Object
        //

        /// <include file='doc\ServicePointManager.uex' path='docs/doc[@for="ServicePointManager.FindServicePoint"]/*' />
        /// <devdoc>
        /// <para>Finds an existing <see cref='System.Net.ServicePoint'/> or creates a new <see cref='System.Net.ServicePoint'/> to manage communications to the
        ///    specified Uniform Resource Identifier.</para>
        /// </devdoc>
        public static ServicePoint FindServicePoint(Uri address)
        {
            return(FindServicePoint(address, GlobalProxySelection.GetEmptyWebProxy()));
        }
GlobalProxySelection