This method returns the Membership virtual server identifier mapped to specified service instance.
IDL Definition
HRESULT MappedTo(
BSTR bszServiceName,
LONG lVirtServInstId,
[in,out] VARIANT* plVirtMemInstId,
[in,out] VARIANT* pbszComment
);
Parameters
bszServiceName
The service name to find mapping for.
lVirtServInstId
The virtual server ID for the service specified by bszServiceName.
plVirtMemInstId
Upon return, a VT_I4 variable containing the corresponding Membership virtual server instance identifier.
pbszComment
Upon return, a VT_BSTR variable containing the Membership virtual server instance name.
Return Values
A standard HRESULT value
Example
Set ObjCreator = CreateObject("ObjCreator.ObjCreator.1")
Set BrokServers = ObjCreator.CreateObjAuth("MemAdmin.BrokServers.1")
BrokServers.MappedTo "W3SVC",1, MemVirtId, MemVirtName
wscript.echo "World Wide Web Service Virtual Server ID =1 mapped to "
wscript.echo MemVirtName & " which is virtual server ID = " & MemVirtId