Base class for plugins that wish to enable the insertion of custom HTML content into posts.
public class ContentSource : WriterPlugin
CreateContent
Create content using an Insert dialog box. Plugin classes that override this method must also be declared with the InsertableContentSourceAttribute class.
CreateContentFromLiveClipboard
Create content using the contents of a LiveClipboard XML document.
CreateContentFromUrl
Create content based on a URL.
The source of content to be inserted can any or all of the following: an Insert dialog box, a URL, or Live Clipboard data.
Implementers of this class should override the CreateContent method(s) corresponding to the content-sources they wish to support. Note also that each of the CreateContent methods has a corresponding class-level attribute that must be specified along with the override.
There is a single instance of a given ContentSource created for each Windows Live Writer process. The implementation of ContentSource objects must therefore be stateless (the context required to carry out the responsibilities of the various methods are passed as parameters to the respective methods).
Inherits from:
System.Object
WindowsLive.Writer.Api.WriterPlugin
WindowsLive.Writer.Api.ContentSource
Assembly: windowslive.writer.api.dll
WindowsLive.Writer.Api