 | CTExtensionGetExportProfileLinkToDBObject Method |
Namespace: CTExtensionsAssembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntaxpublic int GetExportProfileLinkToDBObject(
ICTExportProfile oExportProf,
SQLObjectType eObjectType,
int intData = 0
)
Public Function GetExportProfileLinkToDBObject (
oExportProf As ICTExportProfile,
eObjectType As SQLObjectType,
Optional intData As Integer = 0
) As Integer
Parameters
- oExportProf ICTExportProfile
- Profile in which the link set
- eObjectType SQLObjectType
- Type of the object
- intData Int32 (Optional)
- Integer data can be used to identify specific links of same object type.
Return Value
Int32-1 if failed, id of the object if found
Example
Example how to store links to specific attributes so that they are correctly kept during profile import/export.
enum AttributeTypes
{
MainAttribute = 1,
SecondaryAttribute = 2
}
ICTExportProfile oProfile =
int iAttributeId =
StoreExportProfileLinkToDBObject(oProfile, (int)SQLObjectMgr.SQLObjectType_SQLAttribute, iAttrbuteId, (int)AttributeTypes.MainAttribute);
iAttributeId = GetExportProfileLinkToDBObject(oProfile, (int)SQLObjectMgr.SQLObjectType_SQLAttribute, (int)AttributeTypes.MainAttribute);
See Also