StaticfromAdopt a raw native interface pointer address (takes ownership of 1 reference).
Cast (QueryInterface) this WinRT object to a projected runtime class
(e.g. const btn = root.findName("MyBtn")!.as(Button)), returning a new owned wrapper.
Like as, returning null if the object does not implement TargetClass.
Return the concrete WinRT runtime class name (IInspectable::GetRuntimeClassName).
Close (IClosable::Close when supported), release the COM reference, and dispose any attached COM aggregate when no external COM refs remain.
Base wrapper for projected WinRT objects (
runtimeclassand interface instances).Implements
Disposable(using obj = ...): callsIClosable::Close()if supported, then releases the underlying COM reference.