HttpGetClientProtocol 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
HttpGetClientProtocol 클래스의 새 인스턴스를 초기화합니다.
public:
HttpGetClientProtocol();
public HttpGetClientProtocol ();
Public Sub New ()
예제
// 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.Credentials = credentials;
Console.WriteLine("Auto redirect is: "
+ myHttpGetClientProtocol.AllowAutoRedirect);
}
}
' Math is a proxy class derived from HttpGetClientProtocol.
Dim myHttpGetClientProtocol As New Math()
' Obtain password from a secure store.
Dim SecurelyStoredPassword As String = String.Empty
' Set the client-side credentials using the Credentials property.
Dim credentials = _
New NetworkCredential("Joe", "mydomain", SecurelyStoredPassword)
myHttpGetClientProtocol.Credentials = credentials
' Allow the server to redirect the request.
myHttpGetClientProtocol.AllowAutoRedirect = True
Console.WriteLine("Auto redirect is: " _
& myHttpGetClientProtocol.AllowAutoRedirect)