ContentSource Class Home
Windows Live
ContentSource Class

Base class for plugins that wish to enable the insertion of custom HTML content into posts.

Syntax

public class ContentSource : WriterPlugin
Public Methods

Method Description

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.

Remarks

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

Requirements

Assembly: windowslive.writer.api.dll

Namespace

WindowsLive.Writer.Api

See Also

Other Resources

Windows Live Writer Content Source Plugin Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View