Microsoft doesn't make garage door remotes. Aren't you glad?
Microsoft.HOME Documentation Library
Implements the IRemoteControl interface, and makes remote calls to a registered instance of GarageDoorOpener.
Assembly: Some required.
An instance of GarageDoorOpenerControl must be registered with one or more instances of GarageDoorOpener programmatically. It cannot be registered at runtime. In turn, the associated GarageDoorOpener object must be attached to an instance of GarageDoor.
As with other controllers that implement IRemoteControl, an instance of a GarageDoorOpenerControl may only be used in the same scope as its associated object, in this case, a GarageDoorOpener. Otherwise, a ProximityException will be thrown.
If a GarageDoorOpenerControl has not been registered with the current GarageDoorOpener instance, or the current GarageDoorOpener instance has not been attached to an instance of GarageDoor, use GarageDoorHandler to open a port in the containing Garage object. Then, add HookupGarageDoorOpener to the HoneyDoList.TaskCollection, in the order determined by the controlling SWMBO (She Who Must Be Obeyed).
If you are not familiar with the methods of HookupGarageDoorOpener or the tools required to initiate it, see Home Improvement Overview.
If a GarageDoorOpenerControl object has been registered with a GargeDoorOpener, which has in turn been attached to a GarageDoor object, you may use the GarageDoorOpenerControl object to activate the associated GarageDoorOpener by calling its PushButton method. This action causes the GarageDoorOpener to make an implicit call to GarageDoor.Open.
Because GarageDoor implements the IClosable interface, it should be closed explicitly by calling the GarageDoor.Close method; either via the PushButton method, or via the GarageDoorHandler.
GarageDoor.Open opens a port in the containing Garage object, which is a potential security threat. For more information, see Garage Exploits Overview.
||Objects not yet collected by the garbage collector or otherwise properly disposed may block actions of a GarageDoorOpener initiated by the GarageDoorOpenerControl. A best practice is to first check for the presence of such objects, and call the Driveway.Junk.Clear method on any that are found.
||Caused by calling methods of GarageDoorOpenerControl outside the scope of an associated GarageDoorOpener.
||If the value of the GarageDoorOpenerControl.Battery.Power property becomes zero, calls to the PushButton method may have no effect. This exception may be avoided in subsequent calls by running install +new +battery from the SWMBO command line.
for using the GarageDoorOpenerControl in a hosted environment.
Introduction to Garages
Subscribe to this blog for more cool content like this!
Tagged as: humor, microsoft