GetCDFString Method

The GetCDFString method returns a CDF-formatted string defined by the object. This includes all CDF strings for Channel and Logo objects defined for the Project object, as well as any optionally defined LogTarget and Schedule objects.

VBScript Syntax

IProject.GetCDFString [enconding]

Parameters

encoding

A string specifying an optional encoding style. (VT_BSTR)

Return Value

The CDF formatted string defined by the object.  (VT_BSTR)

Remarks

If encoding is specified, it should be either "UTF-8" or "UCS-2".  Internet Explorer version 4.0 clients default to "UTF-8" when no encoding is specified.

Example

' Using the Windows Scripting Host (cscript.exe) and VBScript
Set Prj = CreateObject("Push.Project")
call Prj.GetCDFString()

outputs:

<?XML version="1.0"?><CHANNEL></CHANNEL>

© 1997-1998 Microsoft Corporation. All rights reserved.