다음을 통해 공유


HttpClientConnection.ServerDomain 속성

정의

서버에 로그온하는 데 사용되는 도메인을 가져오거나 설정합니다.

public:
 property System::String ^ ServerDomain { System::String ^ get(); void set(System::String ^ value); };
public string ServerDomain { get; set; }
member this.ServerDomain : string with get, set
Public Property ServerDomain As String

속성 값

서버에 로그온하는 데 사용되는 도메인을 포함하는 문자열입니다.

예제

다음 코드 예제에서는 속성을 만들고 HttpClientConnection설정합니다. 속성 값은 애플리케이션에 유효한 값으로 대체해야 합니다.

string[] byPassList = { "http://myserver", "http://companysite" };  
Package pkg = new Package();  
ConnectionManager httpConn = pkg.Connections.Add("HTTP");  
HttpClientConnection clientConn = new HttpClientConnection(httpConn.AcquireConnection(null));  
clientConn.ChunkSize = 5;  // Default is 1.  
clientConn.ProxyBypassList = byPassList;  
clientConn.Timeout = 60;  // Default is 30.  
clientConn.UseSecureConnection = false;  

// When UseServerCredentials is true, provide Domain and Password.  
clientConn.UseServerCredentials = true;  
clientConn.ServerDomain = "serverLogOnDomain";  
clientConn.ServerUserName = "serversUserName";  
clientConn.ServerPassword = "serverPasswd"; // Write-only property.  

// When UseProxyCredentials is true, provide Domain and Password.  
clientConn.UseProxyCredentials = true;  
clientConn.ProxyDomain = "myDomain";  
clientConn.ProxyPassword = "proxyPassword";  
Dim byPassList() As String = {"http://myserver", "http://companysite"}  

Dim pkg As Package =  New Package()   
Dim httpConn As ConnectionManager =  pkg.Connections.Add("HTTP")   
Dim clientConn As HttpClientConnection =  New HttpClientConnection(httpConn.AcquireConnection(Nothing))   
clientConn.ChunkSize = 5  ' Default is 1.  
clientConn.ProxyBypassList = byPassList  
clientConn.Timeout = 60  ' Default is 30.  
clientConn.UseSecureConnection = False  

' When UseServerCredentials is true, provide Domain and Password.  
clientConn.UseServerCredentials = True  
clientConn.ServerDomain = "serverLogOnDomain"  
clientConn.ServerUserName = "serversUserName"  
clientConn.ServerPassword = "serverPasswd" ' Write-only property.  

' When UseProxyCredentials is true, provide Domain and Password.  
clientConn.UseProxyCredentials = True  
clientConn.ProxyDomain = "myDomain"  
clientConn.ProxyPassword = "proxyPassword"  

설명

이 속성은 자격 증명을 사용하는 경우에만 적용됩니다.

적용 대상