private void SetPreassignedTarget(IReferencePreassignTarget value)
{
const string SET_TARGET =
@"<CLIPBOARD action=""ReferenceToPage"" guid=""{0}"" type=""project.4145"" descent=""unknown"" addition="""">
<ENTRY guid=""{1}"" type=""page"" descent=""unknown"" />
</CLIPBOARD>";
var result = _parent.Project.ExecuteRQL(SET_TARGET.RQLFormat(_parent, value));
if (!result.InnerText.Contains("ok"))
{
throw new SmartAPIException(
_parent.Project.Session.ServerLogin,
string.Format("Could not set reference on {0} to {1}", _parent, value));
}
}