Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SslServerAuthenticationOptions.ServerCertificateSelectionCallback Property

Definition

Namespace:
System.Net.Security
Assemblies:
netstandard.dll, System.Net.Security.dll
Assembly:
System.Net.Security.dll
Assembly:
netstandard.dll
Source:
SslServerAuthenticationOptions.cs
Source:
SslServerAuthenticationOptions.cs
Source:
SslServerAuthenticationOptions.cs
Source:
SslServerAuthenticationOptions.cs
Source:
SslServerAuthenticationOptions.cs

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 or sets the ServerCertificateSelectionCallback delegate responsible for the server certificate selection.

public:
 property System::Net::Security::ServerCertificateSelectionCallback ^ ServerCertificateSelectionCallback { System::Net::Security::ServerCertificateSelectionCallback ^ get(); void set(System::Net::Security::ServerCertificateSelectionCallback ^ value); };
public System.Net.Security.ServerCertificateSelectionCallback? ServerCertificateSelectionCallback { get; set; }
public System.Net.Security.ServerCertificateSelectionCallback ServerCertificateSelectionCallback { get; set; }
member this.ServerCertificateSelectionCallback : System.Net.Security.ServerCertificateSelectionCallback with get, set
Public Property ServerCertificateSelectionCallback As ServerCertificateSelectionCallback

Property Value

Remarks

When the server connection is established, the server first uses the ServerCertificateSelectionCallback callback. If the delegate isn't provided, the server uses LocalCertificateSelectionCallback, which is provided as an argument of SslStream.SslStream (for .NET Framework compatibility). If neither callback is provided, the server falls back to SslServerAuthenticationOptions.ServerCertificate.

Applies to


Feedback

Was this page helpful?