Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.SSH
- Methods
- Properties
- AllocatePty
- Authentication
- Blocking
- Columns
- Command
- Compression
- DataOut
- DataReady
- Encryption
- EncryptionList
- ExitSignal
- ExitStatus
- FingerPrintType
- FIPS
- ForwardHost
- ForwardPort
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeyFowarding
- Login
- Password
- Port
- PrivateKey
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- Rows
- ShowStdErrorMessages
- State
- StripANSI
- Subsystem
- TerminalType
- Timeout
- Version
- Events
- How to get support?
MultiWaitFor method
Waits and reads data until any of patterns is found.
Type
StringSyntax
- C#
- VB.NET
public String MultiWaitFor(String[] Pattern, ref Int32 MatchedId);
The MultiWaitFor(Pattern,MatchedId) syntax has these parts:
public String MultiWaitFor(String[] Pattern, Int16 Timeout, ref Int32 MatchedId);
The MultiWaitFor(Pattern,Timeout,MatchedId) syntax has these parts:
The MultiWaitFor(Pattern,MatchedId) syntax has these parts:
Pattern | Collection of tring patterns that should be received to notify as command success. (exact text or regular expression). |
MatchedId | Reference to variable that will hold index of matched pattern. |
Return value | Data received while MultiWaitFor was running. |
public String MultiWaitFor(String[] Pattern, Int16 Timeout, ref Int32 MatchedId);
The MultiWaitFor(Pattern,Timeout,MatchedId) syntax has these parts:
Pattern | Collection of tring patterns that should be received to notify as command success. (exact text or regular expression). |
Timeout | Seconds to wait for successful completion of the command. |
MatchedId | Reference to variable that will hold index of matched pattern. |
Return value | Data received while MultiWaitFor was running. |
public Function MultiWaitFor(ByVal Pattern As String[], ByRef MatchedId As Int32) As String
The MultiWaitFor(Pattern,MatchedId) syntax has these parts:
public Function MultiWaitFor(ByVal Pattern As String[], ByVal Timeout As Int16, ByRef MatchedId As Int32) As String
The MultiWaitFor(Pattern,Timeout,MatchedId) syntax has these parts:
The MultiWaitFor(Pattern,MatchedId) syntax has these parts:
Pattern | Collection of tring patterns that should be received to notify as command success. (exact text or regular expression). |
MatchedId | Reference to variable that will hold index of matched pattern. |
Return value | Data received while MultiWaitFor was running. |
public Function MultiWaitFor(ByVal Pattern As String[], ByVal Timeout As Int16, ByRef MatchedId As Int32) As String
The MultiWaitFor(Pattern,Timeout,MatchedId) syntax has these parts:
Pattern | Collection of tring patterns that should be received to notify as command success. (exact text or regular expression). |
Timeout | Seconds to wait for successful completion of the command. |
MatchedId | Reference to variable that will hold index of matched pattern. |
Return value | Data received while MultiWaitFor was running. |