ServicePoint.SupportsPipelining 屬性

定義

指出 ServicePoint 物件是否支援以管線連接。Indicates whether the ServicePoint object supports pipelined connections.

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

屬性值

Boolean

如果 ServicePoint 物件支援以管線連接,則為 true;否則為 falsetrue if the ServicePoint object supports pipelined connections; otherwise, false.

範例

下列程式碼範例會顯示這個屬性的值。The following code example displays the value of this property.

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()))

備註

管線可讓用戶端透過持續性連接傳送多個要求,而不需要等待伺服器的每個回應。Pipelining allows clients to send multiple requests across a persistent connection without waiting for each response from the server. 伺服器會依照收到要求的相同順序來傳送回應。The server sends the responses in the same order as the requests were received.

IETF RFC 2616 區段8.1.2.2 中會詳細說明管線。Pipelining is described in detail in IETF RFC 2616 section 8.1.2.2.

適用於