次の方法で共有


How to: Typecast a WebRequest to Access Protocol Specific Properties

This example shows how to typecast a WebRequest so that you can access protocol specific properties.

使用例

HttpWebRequest httpreq = 
   (HttpWebRequest) WebRequest.Create("https://www.contoso.com/");
Dim httpreq As HttpWebRequest = _
   CType(WebRequest.Create("https://www.contoso.com/"), HttpWebRequest)

参照

概念

Programming Pluggable Protocols