System.Net.ServicePointManager.FindServicePoint C# (CSharp) Method

FindServicePoint() public static method

public static FindServicePoint ( Uri address ) : ServicePoint
address System.Uri
return ServicePoint
        public static ServicePoint FindServicePoint(Uri address) => FindServicePoint(address, null);

Same methods

ServicePointManager::FindServicePoint ( Uri address, IWebProxy proxy ) : ServicePoint
ServicePointManager::FindServicePoint ( string uriString, IWebProxy proxy ) : ServicePoint
ServicePointManager::FindServicePoint ( System address ) : System.Net.ServicePoint
ServicePointManager::FindServicePoint ( System address, System proxy ) : System.Net.ServicePoint
ServicePointManager::FindServicePoint ( string uriString, System proxy ) : System.Net.ServicePoint

Usage Example

示例#1
0
        ServicePoint GetServicePoint()
        {
            if (servicePoint == null)
            {
                servicePoint = ServicePointManager.FindServicePoint(requestUri, proxy);
            }

            return(servicePoint);
        }
All Usage Examples Of System.Net.ServicePointManager::FindServicePoint