NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CodePersister.Load

Called by the code stream when it needs to load the document. This should parse the source code in the document and create the instances of the individual components.

[Visual Basic]
MustOverride Public Function Load() As String
[C#]
public abstract string Load();
[C++]
public: virtual String* Load() = 0;
[JScript]
public abstract function Load() : String;

Return Value

The fully qualified class name of the base component in the document. The base component is the "root" of the document and represents the object that is being designed. The base class of the document base component is typically substituted at design time. As an example, if a document called "Form1" is being edited, and the class "Form1" inherits from "Form", the persister would create an instance of "Form" and return "Form1" from the load method.

See Also

CodePersister Class | CodePersister Members | System.ComponentModel.Design Namespace