共用方式為


DeleteProperty method

Deletes a property.

Syntax

HRESULT retVal = object.DeleteProperty(pszName);

Parameters

  • pszName [in]
    Type: LPCOLESTR

    A pointer to a string that specifies the name of the property to delete.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.