BinaryStreamBaseTryReadString Method
Attempts to read a byte array from the stream with a specified maximum length.
Namespace: SnapDB.IOAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public bool TryReadString(
int maxLength,
out string?? value
)
Public Function TryReadString (
maxLength As Integer,
<OutAttribute> ByRef value As String
) As Boolean
public:
bool TryReadString(
int maxLength,
[OutAttribute] String^% value
)
function TryReadString(maxLength, value);
- maxLength Int32
- The maximum allowed length for the byte array to be read.
- value String
- When this method returns, contains the byte array read from the stream, if successful; otherwise, null.
Booleantrue if a byte array is successfully read within the specified maximum length; otherwise,
false.