点击或拖拽改变大小

FileStreamExensions.SafeUnlock 方法

X#
Unlocks a region in a stream. Contains TRY CATCH mechanism.

命名空间:  XSharp
程序集:  XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法
 STATIC METHOD SafeUnlock(
	SELF oStream AS FileStream,
	offset AS INT64,
	length AS INT64
) AS LOGIC
查看代码

参数

oStream
类型:FileStream
The stream to unlock.
offset
类型:Int64
Start of the region to unlock. The method checks to see that the location is >= 0.
length
类型:Int64
Size of the region to unlock. The method checks to see that the size is > 0.

返回值

类型:Boolean
TRUE when succesfull, FALSE when an exception occurred during reading or when offset or length were invalid.

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型 FileStream 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。
参见