Click or drag to resize
TranslationHelperChangeCodeName Method (String, Guid, String, String, Int32, Int32, String)

Note: This API is now obsolete.

Changes the object code name in the table.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax
C#
[ObsoleteAttribute("Use ChangeCodeName(TranslationParameters parameters, string newCodeName) method instead")]
public void ChangeCodeName(
	string objectType,
	Guid guid,
	string oldCodeName,
	string siteName,
	int parentId,
	int groupId,
	string newCodeName
)

Parameters

objectType
Type: SystemString
Object type
guid
Type: SystemGuid
Object GUID
oldCodeName
Type: SystemString
Old code name
siteName
Type: SystemString
Site name
parentId
Type: SystemInt32
Parent ID
groupId
Type: SystemInt32
Group ID
newCodeName
Type: SystemString
New code name
Remarks
Object's guid might be set to Empty, however, if there is another object with properly set GUID preset simultaneously, both objects will be treated as distinct (despite same oldCodeName and siteName and parentId and groupId).
See Also