TranslationHelperGetIDFromDB Method |
Gets the object ID from the database.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax public static int GetIDFromDB(
string objectType,
string codeName,
string codeNameColumn,
int siteId,
string siteIdColumn,
int parentId,
string parentIdColumn,
int groupId,
string groupIdColumn
)
Parameters
- objectType
- Type: SystemString
Object type - codeName
- Type: SystemString
Code name - codeNameColumn
- Type: SystemString
Code name column name - siteId
- Type: SystemInt32
Site ID - siteIdColumn
- Type: SystemString
Site ID column - parentId
- Type: SystemInt32
Parent ID - parentIdColumn
- Type: SystemString
Parent ID column - groupId
- Type: SystemInt32
Group ID - groupIdColumn
- Type: SystemString
Group ID column
Return Value
Type:
Int32See Also