Partager via


ICacheManager::WriterProgId Property [CS02]

The WriterProgId property is a read/write string that contains the Programmatic Identifier (ProgID) of the component intended for use in populating the cache.

HRESULT ICacheManager::get_WriterProgId(
 BSTR bstrName,
 BSTR* WriterProgId
);
HRESULT ICacheManager::put_WriterProgId(
 BSTR bstrName,
 BSTR WriterProgId
);
Property WriterProgId(
  bstrName As String
) As String

Parameters

  • bstrName
    [C++]

    [in] A BSTR that contains the name of a data cache for which the Writer component ProgID is being provided or retrieved.

    [Visual Basic]

    [in] A String that contains the name of a data cache for which the Writer component ProgID is being provided or retrieved.

  • WriterProgId
    [C++]

    [in] When putting the property, a BSTR that contains the ProgID of the Writer component.[out,retval] When getting the property, a pointer to a BSTR user to return the ProgID of the Writer component.

Return Values

These methods return an HRESULT indicating whether they completed successfully. See the Error Values section for more details.

Error Values

[C++] These methods return S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

[Visual Basic] This property sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

See Also

Other Resources

CacheManager Object