Share via


ICcObject::Name

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

This method sets and gets the name of a datastore object.

In Windows Embedded CE 6.0, CoreCon HLAPI has been deprecated.

Syntax

HRESULT get_Name(
  [out, retval] BSTR* out_pbstrName
);

HRESULT put_Name(
  [in] BSTRin_bstrName
);

Parameters

  • out_ pbstrName, in_ bstrName
    The name of a datastore object.

Return Value

The following table shows the return values for this method.

Value Description

E_OUTOFMEMORY

Indicates the method could not allocate the bstr parameter out_pbstrID.

E_INVALIDARG

Indicates an invalid argument.

E_DATASTORE_PROTECTED

Indicates the method could not set Name because NAME is protected.

E_DATASTORE_XMLTEXT

Indicates an input parameter, not XML text.

S_FALSE

Returns if the name is empty.

Requirements

Header ccdatastore.h

See Also

Reference

Core Connectivity Interfaces