DataDirect XML Converters 5.0 Send comments on this topic.
RequiresSource Method
See Also 
DDTek.XmlConverter Namespace > SchemaGenerator Interface : RequiresSource Method




Determine whether this SchemaGenerator will require an instance of the native data file to generate the XML Schema.

Syntax

Visual Basic (Declaration) 
Function RequiresSource() As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SchemaGenerator
Dim value As Boolean
 
value = instance.RequiresSource()
C# 
bool RequiresSource()
Managed Extensions for C++ 
bool RequiresSource(); 
C++/CLI 
bool RequiresSource(); 

Return Value

A boolean indicating whether a Source object is required to generate the XML Schema.

Remarks

If this method returns true, then the caller should use one of the methods which uses a source object: GetSchema

If this method returns false, then the caller can use either one of the above methods, or can instead use one of the methods which do not use a source object: GetSchema

Some converters, such as EDI, will take settings from the source object to set their values, and allow them to be augmented by URI parameters. In those cases, it can be useful to specify a source object. There is never harm in specifying a source object; at the very worst, if it is not necessary it will be silently ignored.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.