TranslationHelperGetID Method (String, Guid, String, String, Int32, Int32, Int32) |
Note: This API is now obsolete.
Returns the object ID for specified record.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax [ObsoleteAttribute("Use public int GetID(TranslationParameters parameters, int defaultValue) method instead.")]
public int GetID(
string objectType,
Guid guid,
string codeName,
string siteName,
int parentId,
int groupId,
int defaultValue
)
Parameters
- objectType
- Type: SystemString
Object type - guid
- Type: SystemGuid
Object GUID. Can be set to Empty. - codeName
- Type: SystemString
Code name - siteName
- Type: SystemString
Site name - parentId
- Type: SystemInt32
Object parent ID - groupId
- Type: SystemInt32
Group ID - defaultValue
- Type: SystemInt32
Value to return in case record not found
Return Value
Type:
Int32Remarks Object's
guid has priority over code name. However, if there is
Empty provided as
guid, only
codeName will be used to identify object.
See Also