Share via


ICcObject::Name (Windows Embedded CE 6.0)

1/5/2010

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
Windows Windows 2000, Windows Server 2003, Windows Server 2003 Service Pack 1, Windows XP Home, Windows XP Pro

See Also

Reference

ICcObject
Core Connectivity Interfaces