IIsWebService.AddExtensionFile (ADSI)

The AddExtensionFile method adds a new ISAPI extension or CGI application to the IIS server by adding a corresponding entry to the WebSvcExtRestrictionList metabase property.

Note

This method is only available on IIS 6.0 or later.

objIIsWebService.AddExtensionFile(
  bstrExtensionFile As BSTR,
  bAccess As VARIANT,
  bstrGroupID As BSTR,
  bCanDelete As VARIANT,
  bstrDescription As BSTR
)

Parameters

  • bstrExtensionFile
    [in] String containing the file to add. This is the second token, ExtensionPath, in the WebSvcExtRestrictionList metabase property.

  • bAccess
    [in] Byte containing 1 if the extension is enabled, 0 if disabled. This is the first token, AllowDenyFlag, in the WebSvcExtRestrictionList metabase property.

  • bstrGroupID
    [in] String containing the group name. This is the fourth token, GroupID, in the WebSvcExtRestrictionList metabase property.

  • bCanDelete
    [in] Byte containing 1 if the extension can be deleted in IIS Manager, otherwise 0. This is the third token, UIDeletableFlag, in the WebSvcExtRestrictionList metabase property.

  • bstrDescription
    [in] String containing the friendly name or a short description of the extension. This is the fifth token, ApplicationName, in the WebSvcExtRestrictionList metabase property.

Return Values

This method has no return values.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also