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!

CodeStream.Load

Loads a document, using the specified designer host.

[Visual Basic]
MustOverride Public Sub Load( _
   ByVal host As IDesignerHost _
)
[C#]
public abstract void Load(
   IDesignerHost host
);
[C++]
public: virtual void Load(
   IDesignerHost* host
) = 0;
[JScript]
public abstract function Load(
   host : IDesignerHost
);

Parameters

host
The IDesignerHost that this code stream should load the document into. After loading, the code stream should connect any events it needs to monitor changes in the document.

Remarks

Notes to Inheritors: Meant to be overridden in a derived class, this method should be called to load the document. Documents can be reloaded, so this may be called more than once. When called, this should fully load the document from start to finish. If a document is to be reloaded, Unload should always be called first.

See Also

CodeStream Class | CodeStream Members | System.ComponentModel.Design Namespace | Unload | IDesignerHost