|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Enumeração FtpStatusCode
Namespace: System.Net
Assembly: System (em System.dll)
| Nome do membro | Descrição | |
|---|---|---|
| Undefined | ||
| RestartMarker | ||
| ServiceTemporarilyNotAvailable | ||
| DataAlreadyOpen | ||
| OpeningData | ||
| CommandOK | ||
| CommandExtraneous | ||
| DirectoryStatus | ||
| FileStatus | ||
| SystemType | ||
| SendUserCommand | ||
| ClosingControl | ||
| ClosingData | ||
| EnteringPassive | ||
| LoggedInProceed | ||
| ServerWantsSecureSession | ||
| FileActionOK | ||
| PathnameCreated | ||
| SendPasswordCommand | ||
| NeedLoginAccount | ||
| FileCommandPending | ||
| ServiceNotAvailable | ||
| CantOpenData | ||
| ConnectionClosed | ||
| ActionNotTakenFileUnavailableOrBusy | ||
| ActionAbortedLocalProcessingError | ||
| ActionNotTakenInsufficientSpace | ||
| CommandSyntaxError | ||
| ArgumentSyntaxError | ||
| CommandNotImplemented | ||
| BadCommandSequence | ||
| NotLoggedIn | ||
| AccountNeeded | ||
| ActionNotTakenFileUnavailable | ||
| ActionAbortedUnknownPageType | ||
| FileActionAborted | ||
| ActionNotTakenFilenameNotAllowed |
public static bool MakeDirectoryOnServer (Uri serverUri) { // The serverUri should start with the ftp:// scheme. if (serverUri.Scheme != Uri.UriSchemeFtp) { return false; } // Get the object used to communicate with the server. FtpWebRequest request = (FtpWebRequest)WebRequest.Create (serverUri); request.KeepAlive = true; request.Method = WebRequestMethods.Ftp.MakeDirectory; FtpWebResponse response = (FtpWebResponse)request.GetResponse (); Console.WriteLine ("Status: {0}", response.StatusDescription); return true; }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Função Server Core sem suporte), Windows Server 2008 R2 (Função Server Core com suporte com o SP1 ou posterior, Itanium sem suporte)
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte .Requisitos de sistema do NET Framework.