HttpGetClientProtocol.HttpGetClientProtocol Constructor
.NET Framework 2.0
Initializes a new instance of the HttpGetClientProtocol class.
Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
// Math is a proxy class derived from HttpGetClientProtocol. HttpGetClientProtocol^ myHttpGetClientProtocol = gcnew ::Math; // Obtain password from a secure store. String^ SecurelyStoredPassword = String::Empty; // Set the client-side credentials using the Credentials property. ICredentials^ credentials = gcnew NetworkCredential( "Joe","mydomain",SecurelyStoredPassword ); myHttpGetClientProtocol->Credentials = credentials; Console::WriteLine( "Auto redirect is: {0}", myHttpGetClientProtocol->AllowAutoRedirect ); }
// Math is a proxy class derived from HttpGetClientProtocol.
HttpGetClientProtocol myHttpGetClientProtocol = new Math();
// Obtain password from a secure store.
String securelyStoredPassword = String.Empty;
// Set the client-side credentials using the Credentials property.
ICredentials credentials = new NetworkCredential("Joe", "mydomain",
securelyStoredPassword);
myHttpGetClientProtocol.set_Credentials(credentials);
Console.WriteLine("Auto redirect is: "
+ myHttpGetClientProtocol.get_AllowAutoRedirect());
} //main
} //HttpGetClientProtocolClass
Windows 98, Windows Server 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
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: