MapToBroker Method

The MapToBroker method maps a specified instance of some service to a Membership virtual server instance.

IDL Definition

HRESULT MapToBroker( 
[in] BSTR bszServiceName, 
[in] LONG lVirtServInstId, 
[in] LONG lvirtMemInstId 
);

Parameters

bszServiceName

The service to map.

lVirtServInstId

The virtual server ID for the service to map to a Membership virtual server instance.

lVirtMemInstId

The Membership virtual server ID to map the above service's virtual server instance.

Return Values

A standard HRESULT value

Example

Set ObjCreator = CreateObject("ObjCreator.ObjCreator.1")
Set BrokServers = ObjCreator.CreateObjAuth("MemAdmin.BrokServers.1")

BrokServers.MapToBroker "W3SVC", 1, 2
' this maps IIS instance 1 to Mem instance 2

© 1997-1998 Microsoft Corporation. All rights reserved.