public DataObject AddChildNodes(DataObject parentObject, ObjectIdentitySet childIdentities)
        {
            List <ObjectIdentity>        idList     = childIdentities.Identities;
            List <VdmChildrenActionInfo> caInfoList = new List <VdmChildrenActionInfo>();

            foreach (ObjectIdentity objIdentity in idList)
            {
                VirtualDocumentNode vdmNode = new VirtualDocumentNode();
                vdmNode.Identity = objIdentity;
                VirtualDocumentInfo vdmInfo = new VirtualDocumentInfo();
                vdmInfo.Binding             = VirtualDocumentInfo.BINDING_LATE;
                vdmInfo.CopyBehavior        = CopyBehaviorMode.COPY;
                vdmInfo.OverrideLateBinding = false;
                vdmNode.Policy = vdmInfo;
                VdmChildrenActionInfo caInfo = new VdmChildrenActionInfo();
                caInfo.Action = VdmChildrenAction.APPEND;
                caInfo.Node   = vdmNode;
                caInfoList.Add(caInfo);
            }

            VdmUpdateProfile vdmUpdateProfile = new VdmUpdateProfile();
            List <String>    versionLabels    = new List <String>();

            versionLabels.Add("testVersionLabel");

            // make sure to add the CURRENT label if you
            // want the virtual document to be CURRENT
            versionLabels.Add("CURRENT");
            vdmUpdateProfile.Labels = versionLabels;

            OperationOptions options = new OperationOptions();

            options.VdmUpdateProfile = vdmUpdateProfile;
            return(virtualDocumentService.Update(parentObject, caInfoList, options));
        }
        public DataObject AddChildNodes(DataObject parentObject, ObjectIdentitySet childIdentities)
	{
		List<ObjectIdentity> idList = childIdentities.Identities;
		List<VdmChildrenActionInfo> caInfoList = new List<VdmChildrenActionInfo>();
		foreach (ObjectIdentity objIdentity in idList)
		{
			VirtualDocumentNode vdmNode = new VirtualDocumentNode();
			vdmNode.Identity = objIdentity;
			VirtualDocumentInfo vdmInfo = new VirtualDocumentInfo();
			vdmInfo.Binding = VirtualDocumentInfo.BINDING_LATE;
			vdmInfo.CopyBehavior = CopyBehaviorMode.COPY;
			vdmInfo.OverrideLateBinding = false;
			vdmNode.Policy = vdmInfo;
			VdmChildrenActionInfo caInfo = new VdmChildrenActionInfo();
			caInfo.Action = VdmChildrenAction.APPEND;
			caInfo.Node = vdmNode;
			caInfoList.Add(caInfo);
		}
		
        VdmUpdateProfile vdmUpdateProfile = new VdmUpdateProfile();
		List<String> versionLabels = new List<String>();
		versionLabels.Add("testVersionLabel");
		
		// make sure to add the CURRENT label if you
		// want the virtual document to be CURRENT
		versionLabels.Add("CURRENT");
		vdmUpdateProfile.Labels = versionLabels;
		
		OperationOptions options = new OperationOptions();
		options.VdmUpdateProfile = vdmUpdateProfile;
		return virtualDocumentService.Update(parentObject, caInfoList, options);
	}