Edit

Share via


Documents.AddBlogDocument(String, String, String, String) Method

Definition

Returns a object that represents a new blog document that Microsoft Office Word publishes to the account described by the first three parameters.

public Microsoft.Office.Interop.Word.Document AddBlogDocument (string ProviderID, string PostURL, string BlogName, string PostID = "");
abstract member AddBlogDocument : string * string * string * string -> Microsoft.Office.Interop.Word.Document
Public Function AddBlogDocument (ProviderID As String, PostURL As String, BlogName As String, Optional PostID As String = "") As Document

Parameters

ProviderID
String

A GUID that is the unique value a provider uses when they register themselves with Word.

PostURL
String

The URL that is used to add posts to the blog.

BlogName
String

A display name for the blog that will be used in Word.

PostID
String

The ID for an existing post with which to populate the document created by using the AddBlogDocument method.

Returns

_Document

Remarks

This method creates a new document, and it also registers the specified blog account with Word if it is not already registered. In addition, if the PostID parameter is specified, the new document is populated with the contents of the post specified by the value of the PostID parameter, from the provider's Web site.

Applies to