IRepositoryItem::put_Name

See Also

This method changes one or more of the item's names.

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:

Note   This method can, in some circumstances, try to change several names. For example, if you rename an object version that is the destination of three naming relationships and also implements the INamedObject interface, this method will try to change four names. The method returns success if any of the four attempts succeeds.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.