| DirectCommandsSendCommand Method |
Linkar Framework for .NET and Core
Allows a variety of direct operations using standard templates (XML, JSON), synchronously only.
Namespace: Linkar.CommandsAssembly: Linkar.Commands (in Linkar.Commands.dll) Version: 2.3.1
Syntax public static string SendCommand(
CredentialOptions credentialOptions,
string command,
ENVELOPE_FORMAT commandFormat = ENVELOPE_FORMAT.XML,
int receiveTimeout = 0
)
Public Shared Function SendCommand (
credentialOptions As CredentialOptions,
command As String,
Optional commandFormat As ENVELOPE_FORMAT = ENVELOPE_FORMAT.XML,
Optional receiveTimeout As Integer = 0
) As String
public:
static String^ SendCommand(
CredentialOptions^ credentialOptions,
String^ command,
ENVELOPE_FORMAT commandFormat = ENVELOPE_FORMAT::XML,
int receiveTimeout = 0
)
static member SendCommand :
credentialOptions : CredentialOptions *
command : string *
?commandFormat : ENVELOPE_FORMAT *
?receiveTimeout : int
(* Defaults:
let _commandFormat = defaultArg commandFormat ENVELOPE_FORMAT.XML
let _receiveTimeout = defaultArg receiveTimeout 0
*)
-> string
Parameters
- credentialOptions CredentialOptions
- Object with data necessary to access the Linkar Server: Username, Password, EntryPoint, Language, FreeText.
- command String
- Content of the operation you want to send.
- commandFormat ENVELOPE_FORMAT (Optional)
- Indicates in what format you are doing the operation: XML or JSON.
- receiveTimeout Int32 (Optional)
- Maximum time in seconds that the client will wait for a response from the server. Default = 0 to wait indefinitely.
Return Value
StringThe results of the operation.
See Also