共用方式為


SchemeRegistry.GetScheme Method

Definition

Overloads

GetScheme(HttpHost)

Obtains a scheme by name.

GetScheme(String)

Obtains a scheme by name.

GetScheme(HttpHost)

Obtains a scheme by name.

[Android.Runtime.Register("getScheme", "(Lorg/apache/http/HttpHost;)Lorg/apache/http/conn/scheme/Scheme;", "")]
public Org.Apache.Http.Conn.Schemes.Scheme? GetScheme (Org.Apache.Http.HttpHost? host);
[<Android.Runtime.Register("getScheme", "(Lorg/apache/http/HttpHost;)Lorg/apache/http/conn/scheme/Scheme;", "")>]
member this.GetScheme : Org.Apache.Http.HttpHost -> Org.Apache.Http.Conn.Schemes.Scheme

Parameters

host
HttpHost

the host for which to obtain the scheme

Returns

Attributes

Exceptions

if a scheme with the respective name is not registered

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetScheme(String)

Obtains a scheme by name.

[Android.Runtime.Register("getScheme", "(Ljava/lang/String;)Lorg/apache/http/conn/scheme/Scheme;", "")]
public Org.Apache.Http.Conn.Schemes.Scheme? GetScheme (string? name);
[<Android.Runtime.Register("getScheme", "(Ljava/lang/String;)Lorg/apache/http/conn/scheme/Scheme;", "")>]
member this.GetScheme : string -> Org.Apache.Http.Conn.Schemes.Scheme

Parameters

name
String

the name of the scheme to look up (in lowercase)

Returns

Attributes

Exceptions

if the scheme with the given name is not registered

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to