Compartilhar via


IMSAdminBase::DeleteAllData

The IMSAdminBase::DeleteAllData method deletes all or a subset of local data associated with a particular key.

HRESULT DeleteAllData(
      METADATA_HANDLE hMDHandle,
      LPCWSTR pszMDPath,
      DWORD dwMDUserType,
      DWORD dwMDDataType
);

Parameters

  • hMDHandle
    Specifies a handle to the metabase.

  • pszMDPath
    Specifies the path of the key with which the data to be deleted is associated, relative to the path of hMDHandle. For example, if the handle references the /LM key, you could specify the Web services subkey using the path /W3SVC.

  • dwMDUserType
    Specifies the user type of the data to delete. If not set to ALL_METADATA, only data of the specified user type will be deleted.

  • dwMDDataType
    Specifies the data type of the data to delete. If not set to ALL_METADATA, only data of the specified data type will be deleted.

Remarks

The IMSAdminBase::DeleteAllData method deletes only data local to the specified key. Any data that the specified key inherits from parent keys in the metabase is not deleted.

This method can affect subkeys of the specified object if those subkeys inherit data from the key specified in the IMSAdminBase::DeleteAllData call.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in iadmw.h; include iiscnfg.h.