C# 클래스 System.Net.FtpWebRequest

The FtpWebRequest class implements a basic FTP client interface.

상속: WebRequest
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AsyncRequestCallback void
AttemptedRecovery bool
CheckError void
CreateConnection FtpControlStream
CreateConnectionAsync void
DataStreamClosed void
EnsureFtpWebResponse void
FinishRequestStage RequestStage
FtpWebRequest
FtpWebRequest System.Diagnostics
GetUserString string
RequestCallback void
SetException void
SubmitRequest void
SyncRequestCallback void
TimedSubmitRequestHelper System.IO.Stream
TimerCallback void
TranslateConnectException Exception

공개 메소드들

메소드 설명
Abort ( ) : void
BeginGetRequestStream ( AsyncCallback callback, object state ) : IAsyncResult

Used to query for the Request stream of an FTP Request [async version]

BeginGetRequestStream ( System callback, object state ) : System.IAsyncResult
BeginGetResponse ( AsyncCallback callback, object state ) : IAsyncResult

Used to query for the Response of an FTP request [async version]

BeginGetResponse ( System callback, object state ) : System.IAsyncResult
EndGetRequestStream ( IAsyncResult asyncResult ) : Stream
EndGetRequestStream ( System asyncResult ) : System.IO.Stream
EndGetResponse ( System asyncResult ) : System.Net.WebResponse
EndGetResponse ( IAsyncResult asyncResult ) : WebResponse

Returns result of query for the Response of an FTP request [async version]

GetRequestStream ( ) : Stream

Used to query for the Request stream of an FTP Request

GetRequestStream ( ) : System.IO.Stream
GetResponse ( ) : System.Net.WebResponse
GetResponse ( ) : WebResponse

비공개 메소드들

메소드 설명
AsyncRequestCallback ( object obj ) : void
AttemptedRecovery ( Exception e ) : bool

Returns true if we should restart the request after an error

CheckError ( ) : void

Opposite of SetException, rethrows the exception

CreateConnection ( ) : FtpControlStream
CreateConnectionAsync ( ) : void
DataStreamClosed ( CloseExState closeState ) : void
EnsureFtpWebResponse ( Exception exception ) : void

Creates an FTP WebResponse based off the responseStream and our active Connection

FinishRequestStage ( RequestStage stage ) : RequestStage
FtpWebRequest ( )
FtpWebRequest ( Uri uri ) : System.Diagnostics
GetUserString ( ) : string

Returns username string

RequestCallback ( object obj ) : void
SetException ( Exception exception ) : void

Updates and sets our exception to be thrown

SubmitRequest ( bool isAsync ) : void
SyncRequestCallback ( object obj ) : void
TimedSubmitRequestHelper ( bool isAsync ) : Stream
TimerCallback ( TimerThread timer, int timeNoticed, object context ) : void

Because this is called from the timer thread, neither it nor any methods it calls can call user code.

TranslateConnectException ( Exception e ) : Exception

메소드 상세

Abort() 공개 메소드

public Abort ( ) : void
리턴 void

BeginGetRequestStream() 공개 메소드

Used to query for the Request stream of an FTP Request [async version]

public BeginGetRequestStream ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
리턴 IAsyncResult

BeginGetRequestStream() 공개 메소드

public BeginGetRequestStream ( System callback, object state ) : System.IAsyncResult
callback System
state object
리턴 System.IAsyncResult

BeginGetResponse() 공개 메소드

Used to query for the Response of an FTP request [async version]

public BeginGetResponse ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
리턴 IAsyncResult

BeginGetResponse() 공개 메소드

public BeginGetResponse ( System callback, object state ) : System.IAsyncResult
callback System
state object
리턴 System.IAsyncResult

EndGetRequestStream() 공개 메소드

public EndGetRequestStream ( IAsyncResult asyncResult ) : Stream
asyncResult IAsyncResult
리턴 System.IO.Stream

EndGetRequestStream() 공개 메소드

public EndGetRequestStream ( System asyncResult ) : System.IO.Stream
asyncResult System
리턴 System.IO.Stream

EndGetResponse() 공개 메소드

public EndGetResponse ( System asyncResult ) : System.Net.WebResponse
asyncResult System
리턴 System.Net.WebResponse

EndGetResponse() 공개 메소드

Returns result of query for the Response of an FTP request [async version]

public EndGetResponse ( IAsyncResult asyncResult ) : WebResponse
asyncResult IAsyncResult
리턴 WebResponse

GetRequestStream() 공개 메소드

Used to query for the Request stream of an FTP Request

public GetRequestStream ( ) : Stream
리턴 System.IO.Stream

GetRequestStream() 공개 메소드

public GetRequestStream ( ) : System.IO.Stream
리턴 System.IO.Stream

GetResponse() 공개 메소드

public GetResponse ( ) : System.Net.WebResponse
리턴 System.Net.WebResponse

GetResponse() 공개 메소드

public GetResponse ( ) : WebResponse
리턴 WebResponse