点击或拖拽改变大小

FileStreamExensions.SafeRead Method (FileStream, Byte, Long)

X#
Read data from a stream. Contains TRY CATCH mechanism. Reads from current location.

命名空间:  XSharp
程序集:  XSharp.Core (在 XSharp.Core.dll 中) 版本:2.24 GA
Syntax
 STATIC METHOD SafeRead(
	SELF oStream AS FileStream,
	buffer AS BYTE[],
	length AS LONG
) AS LOGIC
Request Example 查看代码

Parameters

oStream
类型:FileStream
要从中读取的流。
buffer
类型:Byte
必须读取的缓冲区。
length
类型:Long
要读取的字节数。

Return Value

类型:Logic
当成功时为 TRUE,当发生异常或参数不正确时为 FALSE。

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FileStream. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also