RemoveEntry Method

The RemoveEntry method deletes a specified entry from the configuration.

IDL Definition

HRESULT RemoveEntry( [in] BSTR  bszName ) ;

Parameter

bszName

the name of the AUO entry to remove

Return Value

a standard HRESULT value

Remarks

You must have previously called GetInfo and specified a Membership virtual server instance. If GetInfo has not been called, this method will return an error.

This method only deletes the entry in the object. To permanently commit the changes for the virtual server instance, invoke the SetInfo method.

The process or thread invoking this method must have NT administrative credentials associated with it for the method to succeed.

Example

' Using Windows Scripting Host and VBScript
Option Explicit

' First the AuoConfig object gets instantiated
' using the special creator object
Dim ObjCreator
Set ObjCreator = CreateObject("ObjCreator.ObjCreator.1")

Dim AuoConfig
set AuoConfig = Obj.Creator.CreateObjAuth("MemAdmin.AuoConfig.1")
'  Work with Membership Instance 3
AuoConfigObjRef.GetInfo(3)

' now we want to remove an entry in the AuoConfig object
' Say the entry with friendly name "ThisOne"
AuoConfigObjRef.RemoveEntry("ThisOne")

© 1997-1998 Microsoft Corporation. All rights reserved.