HttpPostClientProtocol コンストラクタ
アセンブリ: System.Web.Services (system.web.services.dll 内)


' Math is a proxy class derived from HttpPostClientProtocol. Dim myHttpPostClientProtocol As New Math() ' Obtain password from a secure store. Dim SecurelyStoredPassword As String = String.Empty ' Set the client-side credentials using the Credentials property. myHttpPostClientProtocol.Credentials = System.Net.CredentialCache.DefaultCredentials ' Allow the server to redirect the request. myHttpPostClientProtocol.AllowAutoRedirect = True Console.WriteLine("Auto redirect is: " & _ myHttpPostClientProtocol.AllowAutoRedirect)
// Math is a proxy class derived from HttpPostClientProtocol. HttpPostClientProtocol myHttpPostClientProtocol = new Math(); // Obtain password from a secure store. String SecurelyStoredPassword = String.Empty; // Set the client-side credentials using the Credentials property. myHttpPostClientProtocol.Credentials = System.Net.CredentialCache.DefaultCredentials; // Allow the server to redirect the request. myHttpPostClientProtocol.AllowAutoRedirect = true; Console.WriteLine("Auto redirect is: " + myHttpPostClientProtocol.AllowAutoRedirect);
// Math is a proxy class derived from HttpPostClientProtocol. HttpPostClientProtocol^ myHttpPostClientProtocol = gcnew ::Math; // Obtain password from a secure store. String^ SecurelyStoredPassword = String::Empty; // Set the client-side credentials using the Credentials property. myHttpPostClientProtocol->Credentials = System::Net::CredentialCache::DefaultCredentials; // Allow the server to redirect the request. myHttpPostClientProtocol->AllowAutoRedirect = true; Console::WriteLine( "Auto redirect is: {0}", myHttpPostClientProtocol->AllowAutoRedirect );
// Math is a proxy class derived from HttpPostClientProtocol. HttpPostClientProtocol myHttpPostClientProtocol = new Math(); // Obtain password from a secure store. String securelyStoredPassword = String.Empty; // Set the client-side credentials using the Credentials property. myHttpPostClientProtocol.set_Credentials( System.Net.CredentialCache.get_DefaultCredentials()); // Allow the server to redirect the request. myHttpPostClientProtocol.set_AllowAutoRedirect(true); Console.WriteLine("Auto redirect is: " + myHttpPostClientProtocol.get_AllowAutoRedirect());

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- HttpPostClientProtocol コンストラクタのページへのリンク