<servicePointManager> Element (Network Settings)

 

Configures connections to network resources.

<configuration>
<system.net>
<settings>
<servicePointManager>

  
      <servicePointManager  
  checkCertificateName="true|false"  
  checkCertificateRevocationList="true|false"  
  encryptionPolicy="AllowNoEncryption|NoEncryption|RequireEncryption"  
  expect100Continue="true|false"  
  useNagleAlgorithm="true|false"  
  enableDnsRoundRobin="true|false"  
  dnsRefreshTimeout="time"  
/>  

The following sections describe attributes, child elements, and parent elements.

Attributes

AttributeDescription
checkCertificateNameSpecifies whether the system should verify that the name on the certificate matches the server host name before using the certificate. The default value is true.
checkCertificateRevocationListSpecifies whether the system should check whether the certificate has been revoked before using the certificate. The default value is false.
dnsRefreshTimeoutSpecifies how long Domain Name Service (DNS) resolutions are cached in conjunction with the DNS Round Robin option, in milliseconds. The default value is 120,000 milliseconds (two minutes).
enableDnsRoundRobinSpecifies whether DNS resolutions of host names with multiple Internet Protocol (IP) addresses return all the addresses, or just the first one. The default value is false.
encryptionPolicySpecifies the encryption policy applied to an SSL/TLS session on a ServicePointManager instance. The possible values are equivalent to the values for the EncryptionPolicy enumeration. The use of Null is required when the encryption policy is set to NoEncryption. The default value is RequireEncryption.
expect100ContinueSpecifies whether POST methods should expect to receive a 100-continue response from the server. The default value is true.
useNagleAlgorithmSpecifies whether connections controlled by the service point manager use the Nagle algorithm. The default value is true.

Child Elements

None.

Parent Elements

ElementDescription
SettingsConfigures basic network options for the System.Net namespace.

This element can be used in the application configuration file or the machine configuration file (Machine.config).

ServicePointManager
EncryptionPolicy
Network Settings Schema

Show: