The ADSI PutEx method sets the value for a single- or multi-valued metabase property in the object. You can use PutEx to remove (also called clear) a property from a metabase key.
object.PutEx controlcode, property, value
For a metabase property to use inherited data at a key, the property must not exist at the key. You can remove it by using ADS_PROPERTY_CLEAR. You can use the GetDataPaths method common to all IIS Admin Objects to locate the keys where a property exists.
<% Dim IIsObj, vList Set IIsObj = GetObject("IIS://LocalHost/W3SVC/Info") ' Get the value from the object vList = IIsObj.GetEx("CustomErrorDescriptions") ' Modify the list ' Put the values back in the object IIsObj.PutEx 2, "CustomErrorDescriptions", vList ' Remove another property from the object IIsObj.PutEx 1, "ObsoleteProperty", "" IIsObj.SetInfo %>
GetInfo, SetInfo, Get, Put, GetEx, GetInfoEx