System.Net.GlobalProxySelection.GetEmptyWebProxy C# (CSharp) 메소드

GetEmptyWebProxy() 공개 정적인 메소드

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

Usage Example

예제 #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