共用方式為


ServicePoint.SupportsPipelining 屬性

定義

指出 ServicePoint 物件是否支援管線連接。

public:
 property bool SupportsPipelining { bool get(); };
public bool SupportsPipelining { get; }
member this.SupportsPipelining : bool
Public ReadOnly Property SupportsPipelining As Boolean

屬性值

如果 ServicePoint 物件支援管線連接,true;否則,false

範例

下列程式代碼範例會顯示這個屬性的值。

if ( sp->Certificate == nullptr )
   Console::WriteLine( "Certificate = (null)" );
else
   Console::WriteLine( "Certificate = {0}", sp->Certificate );

if ( sp->ClientCertificate == nullptr )
   Console::WriteLine( "Client Certificate = (null)" );
else
   Console::WriteLine( "Client Certificate = {0}", sp->ClientCertificate );

Console::WriteLine( "ProtocolVersion = {0}", sp->ProtocolVersion->ToString() );
Console::WriteLine( "SupportsPipelining = {0}", sp->SupportsPipelining );
if (sp.Certificate == null)
    Console.WriteLine("Certificate = (null)");
else
    Console.WriteLine("Certificate = " + sp.Certificate.ToString());

if (sp.ClientCertificate == null)
    Console.WriteLine("ClientCertificate = (null)");
else
    Console. WriteLine("ClientCertificate = " + sp.ClientCertificate.ToString());

Console.WriteLine("ProtocolVersion = " + sp.ProtocolVersion.ToString());
Console.WriteLine("SupportsPipelining = " + sp.SupportsPipelining);
If sp.Certificate Is Nothing Then
    Console.WriteLine("Certificate = (null)")
Else
    Console.WriteLine(("Certificate = " + sp.Certificate.ToString()))
End If

If sp.ClientCertificate Is Nothing Then
    Console.WriteLine("ClientCertificate = (null)")
Else
    Console.WriteLine(("ClientCertificate = " + sp.ClientCertificate.ToString()))
End If

Console.WriteLine("ProtocolVersion = " + sp.ProtocolVersion.ToString())
Console.WriteLine(("SupportsPipelining = " + sp.SupportsPipelining.ToString()))

備註

謹慎

WebRequestHttpWebRequestServicePointWebClient 已經過時,您不應該將它們用於新的開發。 請改用 HttpClient

管道傳送可讓用戶端跨持續性連線傳送多個要求,而不需要等候伺服器的每個回應。 伺服器會以與收到的要求相同順序傳送回應。

IETF RFC 2616 第 8.1.2.2 節會詳細說明管道處理。

適用於