Windows Live
UrlContentSourceAttribute Class

Attribute applied to ContentSource and SmartContentSource methods that override the CreateContentFromUrl method to enable creation of new content from URLs.

Syntax

public class UrlContentSourceAttribute : Attribute
Public Properties

Property Description

ProgressCaption

Optional caption used in a progress message.

ProgressMessage

Optional descriptive text used in a progress message.

RequiresProgress

Indicates that the content source requires a progress dialog during the execution of its CreateContentFromUrl method.

UrlPattern

Regular expression that indicates which format of URL this content source can handle.

Public Methods

Method Description

Constructor

Initialize a new instance of a UrlContentSourceAttribute.

Remarks

The source of this URL can either be the value passed to the WindowsLiveWriterApplication.BlogThisLink method or a URL that is pasted or dragged into the editor.

Note:
If the implementation of this method accesses the network to retrieve additional information about the content to be inserted it is recommended that the UrlContentSourceAttribute.RequiresProgress property be set to True.

Inherits from:

System.Object

System.Attribute

WindowsLive.Writer.Api.UrlContentSourceAttribute

Requirements

Assembly: windowslive.writer.api.dll

Namespace

WindowsLive.Writer.Api

See Also

Other Resources

Windows Live Writer Content Source Plugin Reference

Page view tracker