PowerTCP Mail for .NET
Request Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Invoke Class : Request Property




Gets the request sent to the server.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Request As String
Visual Basic (Usage)Copy Code
Dim instance As Invoke
Dim value As String
 
value = instance.Request
C# 
public string Request {get;}
Managed Extensions for C++ 
public: __property string* get_Request();
C++/CLI 
public:
property String^ Request {
   String^ get();
}

Property Value

A string representing the request sent to the server.

Example

The following example demonstrates using Invoke to send a command.
Visual BasicCopy Code
' Set server and user properties. This will allow us to call other
' Ftp Component methods with the log in taking place "behind the scenes"
Ftp1.Server = "MyFTPServer"
Ftp1.Username = "blah"
Ftp1.Password = "mypass"

' Invoke a command
Dim invoke as Dart.PowerTCP.Ftp.Invoke
Try
   invoke = Ftp1.Invoke(FtpCommand.NoOp)
Catch ex as Exception
   Debug.WriteLine("Error: " + ex.Message)
   Exit Sub
End Try
            
' Success
Debug.WriteLine("Request/Response messages: " + invoke.ToString())
C#Copy Code
// Set server and user properties. This will allow us to call other
// Ftp Component methods with the log in taking place "behind the scenes"
ftp1.Server = "MyFTPServer";
ftp1.Username = "blah";
ftp1.Password = "mypass";

// Invoke a command
Dart.PowerTCP.Ftp.Invoke invoke;
try
{
   invoke = ftp1.Invoke(Dart.PowerTCP.Ftp.FtpCommand.NoOp);
}
catch (Exception ex)
{
    Debug.WriteLine("Error: " + ex.ToString());
    return;
}

// Success
Debug.WriteLine("Request/Response messages: " + invoke.ToString());

Remarks

This property represents the command sent to the server.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.