IRepositoryItem::put_Name

Meta Data Services Programming

Meta Data Services Programming

IRepositoryItem::put_Name

This method changes one or more names of an item.

HRESULT put_Name(BSTR   Name);

Parameters

Name

[in]
The name to be associated with the item.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

Remarks

The behavior of this method depends on whether the to-be-named item is an object version, an origin versioned relationship, or a destination versioned relationship. For more information, see Changing an Object Version's Name and Changing a Destination Relationship's Name.

Note  In some circumstances, this method may attempt to change several names. For example, an object version that implements the INamedObject interface is the destination of three naming relationships. If you rename the object, this method will attempt to change four names. The method returns S_OK if any of the four attempts succeeds.

See Also

IRepositoryItem Interface

INamedObject Interface

IRepositoryItem::get_Name