SslError 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| SslError(SslErrorType, SslCertificate) |
已过时.
使用提供的错误和证书创建新的 SslError 对象。 |
| SslError(SslErrorType, X509Certificate) |
已过时.
使用提供的错误和证书创建新的 SslError 对象。 |
| SslError(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
| SslError(SslErrorType, SslCertificate, String) |
使用提供的错误、证书和 URL 创建新的 SslError 对象。 |
| SslError(SslErrorType, X509Certificate, String) |
使用提供的错误、证书和 URL 创建新的 SslError 对象。 |
SslError(SslErrorType, SslCertificate)
注意
deprecated
使用提供的错误和证书创建新的 SslError 对象。
[Android.Runtime.Register(".ctor", "(ILandroid/net/http/SslCertificate;)V", "")]
[System.Obsolete("deprecated")]
public SslError(Android.Net.Http.SslErrorType error, Android.Net.Http.SslCertificate? certificate);
[<Android.Runtime.Register(".ctor", "(ILandroid/net/http/SslCertificate;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Net.Http.SslError : Android.Net.Http.SslErrorType * Android.Net.Http.SslCertificate -> Android.Net.Http.SslError
参数
- error
- SslErrorType
SSL 错误
- certificate
- SslCertificate
关联的 SSL 证书
- 特性
注解
使用提供的错误和证书创建新的 SslError 对象。 URL 将设置为空字符串。
此成员已弃用。 使用 #SslError(int, SslCertificate, String)
Java文档android.net.http.SslError.SslError(int, android.net.http.SslCertificate)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
SslError(SslErrorType, X509Certificate)
注意
deprecated
使用提供的错误和证书创建新的 SslError 对象。
[Android.Runtime.Register(".ctor", "(ILjava/security/cert/X509Certificate;)V", "")]
[System.Obsolete("deprecated")]
public SslError(Android.Net.Http.SslErrorType error, Java.Security.Cert.X509Certificate? certificate);
[<Android.Runtime.Register(".ctor", "(ILjava/security/cert/X509Certificate;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Net.Http.SslError : Android.Net.Http.SslErrorType * Java.Security.Cert.X509Certificate -> Android.Net.Http.SslError
参数
- error
- SslErrorType
SSL 错误
- certificate
- X509Certificate
关联的 SSL 证书
- 特性
注解
使用提供的错误和证书创建新的 SslError 对象。 URL 将设置为空字符串。
此成员已弃用。 使用 #SslError(int, X509Certificate, String)
Java文档android.net.http.SslError.SslError(int, java.security.cert.X509Certificate)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
SslError(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected SslError(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Net.Http.SslError : nativeint * Android.Runtime.JniHandleOwnership -> Android.Net.Http.SslError
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
SslError(SslErrorType, SslCertificate, String)
使用提供的错误、证书和 URL 创建新的 SslError 对象。
[Android.Runtime.Register(".ctor", "(ILandroid/net/http/SslCertificate;Ljava/lang/String;)V", "")]
public SslError(Android.Net.Http.SslErrorType error, Android.Net.Http.SslCertificate? certificate, string? url);
[<Android.Runtime.Register(".ctor", "(ILandroid/net/http/SslCertificate;Ljava/lang/String;)V", "")>]
new Android.Net.Http.SslError : Android.Net.Http.SslErrorType * Android.Net.Http.SslCertificate * string -> Android.Net.Http.SslError
参数
- error
- SslErrorType
SSL 错误
- certificate
- SslCertificate
关联的 SSL 证书
- url
- String
关联的 URL
- 特性
注解
使用提供的错误、证书和 URL 创建新的 SslError 对象。
Java文档android.net.http.SslError.SslError(int, android.net.http.SslCertificate, java.lang.String)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
SslError(SslErrorType, X509Certificate, String)
使用提供的错误、证书和 URL 创建新的 SslError 对象。
[Android.Runtime.Register(".ctor", "(ILjava/security/cert/X509Certificate;Ljava/lang/String;)V", "")]
public SslError(Android.Net.Http.SslErrorType error, Java.Security.Cert.X509Certificate? certificate, string? url);
[<Android.Runtime.Register(".ctor", "(ILjava/security/cert/X509Certificate;Ljava/lang/String;)V", "")>]
new Android.Net.Http.SslError : Android.Net.Http.SslErrorType * Java.Security.Cert.X509Certificate * string -> Android.Net.Http.SslError
参数
- error
- SslErrorType
SSL 错误
- certificate
- X509Certificate
关联的 SSL 证书
- url
- String
关联的 URL
- 特性
注解
使用提供的错误、证书和 URL 创建新的 SslError 对象。
Java文档android.net.http.SslError.SslError(int, java.security.cert.X509Certificate, java.lang.String)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。