且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Vb.net - 如何激活已处置的识别对象?

更新时间:2023-12-04 20:31:16

你在它上面调用Dispose,就是这样。它死了。没有复活的机会。



你有两个选择。



1)创建一个新对象。



2)如果你还需要它,请不要丢弃它。
You you call Dispose on it, that's it. It's dead. No chance of resurrection.

You have two choices.

1) Create a new object.

2) Don't dispose the thing if you still need it.