ServicePointManager.EncryptionPolicy Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the EncryptionPolicy for this ServicePointManager instance.
public:
static property System::Net::Security::EncryptionPolicy EncryptionPolicy { System::Net::Security::EncryptionPolicy get(); };
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Net.Security.EncryptionPolicy EncryptionPolicy { get; }
public static System.Net.Security.EncryptionPolicy EncryptionPolicy { get; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member EncryptionPolicy : System.Net.Security.EncryptionPolicy
static member EncryptionPolicy : System.Net.Security.EncryptionPolicy
Public Shared ReadOnly Property EncryptionPolicy As EncryptionPolicy
The encryption policy to use for this ServicePointManager instance.
- Attributes
If a value is not specified in the configuration file, the EncryptionPolicy property defaults to EncryptionPolicy.RequireEncryption. This is applied to an SSL/TLS session on this ServicePointManager instance.
The use of the Null cipher is required when the encryption policy is set to EncryptionPolicy.NoEncryption.
Anteckning
This property is only implemented on .NET Framework.
Produkt | Versioner |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: