ServicePoint.ConnectionName Vlastnost
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Získá název připojení.
public:
property System::String ^ ConnectionName { System::String ^ get(); };
public string ConnectionName { get; }
member this.ConnectionName : string
Public ReadOnly Property ConnectionName As String
Hodnota vlastnosti
A String , který představuje název připojení.
Příklady
Console::WriteLine( "ConnectionName = {0}", sp->ConnectionName );
// Display the maximum number of connections allowed on this
// ServicePoint instance.
Console::WriteLine( "ConnectionLimit = {0}", sp->ConnectionLimit );
// Display the number of connections associated with this
// ServicePoint instance.
Console::WriteLine( "CurrentConnections = {0}", sp->CurrentConnections );
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()))
Poznámky
ServicePoint Pokud byl objekt vytvořen voláním FindServicePoint přetížení s argumentemUri, pak ConnectionName vlastnost představuje Scheme vlastnost použitého objektuUri.
ServicePoint Pokud byl objekt vytvořen z síťového hostitele a portu, ConnectionName vlastnost obsahuje řetězec, který představuje hostitele a síťový port. ConnectionName Pokud je vlastnost nastavena při vytváření z hostitele a portu, mohou tento ServicePoint objekt použít pouze WebRequest objekty se stejnou ConnectionGroupName hodnotou.