ServicePoint.IdleSince 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
ServicePoint 개체가 호스트에 마지막으로 연결된 날짜와 시간을 가져옵니다.
public:
property DateTime IdleSince { DateTime get(); };
public DateTime IdleSince { get; }
member this.IdleSince : DateTime
Public ReadOnly Property IdleSince As DateTime
속성 값
DateTime 개체가 마지막으로 연결된 날짜와 시간이 들어 있는 ServicePoint 개체입니다.
예제
다음 코드 예제에서는 속성을 사용 하 여 IdleSince 설정 하 고 개체가 호스트에 마지막으로 연결 된 ServicePoint 날짜와 시간을 검색 합니다.
// Display the date and time that the ServicePoint was last
// connected to a host.
Console::WriteLine( "IdleSince = {0}", sp->IdleSince );
// Display the maximum length of time that the ServicePoint instance
// is allowed to maintain an idle connection to an Internet
// resource before it is recycled for use in another connection.
Console::WriteLine( "MaxIdleTime = {0}", sp->MaxIdleTime );
// Display the date and time that the ServicePoint was last
// connected to a host.
Console.WriteLine("IdleSince = " + sp.IdleSince.ToString());
// Display the maximum length of time that the ServicePoint instance
// is allowed to maintain an idle connection to an Internet
// resource before it is recycled for use in another connection.
Console.WriteLine("MaxIdleTime = " + sp.MaxIdleTime);
' Display the date and time that the ServicePoint was last
' connected to a host.
Console.WriteLine(("IdleSince = " + sp.IdleSince.ToString()))
' Display the maximum length of time that the ServicePoint instance
' is allowed to maintain an idle connection to an Internet
' resource before it is recycled for use in another connection.
Console.WriteLine(("MaxIdleTime = " + sp.MaxIdleTime.ToString()))
설명
이 속성은 IdleSince 호스트에서 서비스 지점의 연결이 끊어진 마지막 날짜와 시간을 기록합니다. 현재 시간의 차이와 IdleSince 값 MaxIdleTime이 초과되면 개체를 ServicePoint 다른 연결로 재활용할 수 있습니다.