![]() ![]() |
![]() |
![]() |
home > ASP
& VB Script Tutorials > Using
GetObject() |
|
Using the |
GetObject( ) argument(including moniker in bold) |
what it does |
---|---|
"iis:<metabasepath>"
|
Allows a programmer to view and alter key IIS functionality for any webserver physically connected to this machine. |
"java:<classname>"
|
Returns a reference to an
unregistered java object found in the %system
root%\java\trustlib folder using the Java Virtual
Machine. |
"script:<absolutepath>"
|
Returns a reference to an unregistered Windows Scripting Component or other supported script type. |
"clsid:<clsid>"
|
Returns a reference to an object by it's class ID in the registry. |
"WinMgmts:<string>"
|
Allows access to base Windows OS functionality with WMI |
"OBJREF:<base64encodedstring>"
|
Returns access to a running object instance |
"queue:<clsid/progid>"
|
Used to activate a queued COM+ component via MSMQ. |
"new:<clsid/progid>"
|
Allows instancing of any COM component supporting the IClassFactory pointer (including queued components) |
GetObject( )
function
and came up empty. GetObject( )
how the object should be
referenced without revealing any clues as to how it might internally call
and reference the object before an instance is returned to ASP. That way,
we can use almost any COM object in ASP and at the same time, not be
concerned with the logic that actually gets the object reference. In a
nutshell, an ASP programmer will always be able to use the
familiarobject.[property][method][collection] [=
whatever]
GetObject( )
.
GetObject(
)
: "java:<classname>" "script:<absolutepath>"The other
GetObject( )
monikers are usually used with
Windows Scripting Host or in VBA although they can theoretically be used
with GetObject( )
in ASP with either
VBScript or JScript provided that the proper permissions are enabled,
etc... Java
Moniker
Returns a reference to an unregistered java object found in the
%system root%\java\trustlib
folder using the Java Virtual Machine.
IIS
Moniker
Allows a programmer to view and alter key IIS functionality for any
webserver physically connected to this machine.
Script
Moniker
Returns a reference to an
unregistered Windows Scripting Component or other supported script type.
WinMgmts
Moniker
Allows access to base Windows
OS functionality with WMI
Other
Monikers
Links to other monikers
like: queue
, new
, OBJREF
and clsid
.