Previous in Contents Next in Contents

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 [encoding]

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". Microsoft® 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-2000 Microsoft Corporation. All rights reserved.