ServicePoint.ConnectionName Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Fica com o nome da ligação.
public:
property System::String ^ ConnectionName { System::String ^ get(); };
public string ConnectionName { get; }
member this.ConnectionName : string
Public ReadOnly Property ConnectionName As String
Valor de Propriedade
A String que representa o nome da ligação.
Exemplos
Console.WriteLine("ConnectionName = " + sp.ConnectionName);
// Display the maximum number of connections allowed on this
// ServicePoint instance.
Console.WriteLine("ConnectionLimit = " + sp.ConnectionLimit);
// Display the number of connections associated with this
// ServicePoint instance.
Console.WriteLine("CurrentConnections = " + sp.CurrentConnections);
Console.WriteLine(("ConnectionName = " + sp.ConnectionName))
' Display the maximum number of connections allowed on this
' ServicePoint instance.
Console.WriteLine(("ConnectionLimit = " + sp.ConnectionLimit.ToString()))
' Display the number of connections associated with this
' ServicePoint instance.
Console.WriteLine(("CurrentConnections = " + sp.CurrentConnections.ToString()))
Observações
Atenção
WebRequest, HttpWebRequest, ServicePoint, e WebClient são obsoletos, e não deves usá-los para novos desenvolvimentos. Utilize HttpClient em substituição.
Se o ServicePoint objeto foi construído chamando uma FindServicePoint sobrecarga com um Uri argumento, então a ConnectionName propriedade representa a Scheme propriedade do Uri objeto utilizado.
Se o ServicePoint objeto foi construído a partir de um host e porta de rede, a ConnectionName propriedade contém uma string que representa o host e a porta de rede. Se a ConnectionName propriedade for definida quando construída a partir de um host e porta, apenas WebRequest objetos com o mesmo ConnectionGroupName valor podem usar este ServicePoint objeto.