Handle.ThrowIfUninitialized 方法

定义

如果尚未初始化 InvalidOperationException,则将引发 Handle

protected:
 void ThrowIfUninitialized();
protected void ThrowIfUninitialized ();
member this.ThrowIfUninitialized : unit -> unit
Protected Sub ThrowIfUninitialized ()

注解

ThrowIfUninitialized 为自定义句柄派生类作者提供一种便捷方法,让他们能够从任何在 Handle 未初始化之前无效的派生类的方法或属性中进行调用。

适用于