一款简单易用的基础网络通讯组件库。

FilePoolTryReleaseFile 方法

减少引用次数,并尝试释放流。

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public static Result TryReleaseFile(
	string path,
	int delayTime = 0
)

参数

path  String

[缺少 "M:TouchSocket.Core.FilePool.TryReleaseFile(System.String,System.Int32)" 的 <param name="path"/> 文档]

delayTime  Int32  (Optional)
延迟释放时间。当设置为0时,立即释放,单位毫秒。

返回值

Result

[缺少 "M:TouchSocket.Core.FilePool.TryReleaseFile(System.String,System.Int32)" 的 <returns> 文档]

异常

ArgumentException
Exception

参见