Partager via


IBlogExtensibility.PublishPost Method

Hands off the current post so it can be published by the provider.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub PublishPost ( _
    Account As String, _
    ParentWindow As Integer, _
    Document As Object, _
    xHTML As String, _
    Title As String, _
    DateTime As String, _
    Categories As Array, _
    Draft As Boolean, _
    <OutAttribute> ByRef PostID As String, _
    <OutAttribute> ByRef PublishMessage As String _
)
'Usage
Dim instance As IBlogExtensibility
Dim Account As String
Dim ParentWindow As Integer
Dim Document As Object
Dim xHTML As String
Dim Title As String
Dim DateTime As String
Dim Categories As Array
Dim Draft As Boolean
Dim PostID As String
Dim PublishMessage As String

instance.PublishPost(Account, ParentWindow, _
    Document, xHTML, Title, DateTime, _
    Categories, Draft, PostID, PublishMessage)
void PublishPost(
    string Account,
    int ParentWindow,
    Object Document,
    string xHTML,
    string Title,
    string DateTime,
    Array Categories,
    bool Draft,
    out string PostID,
    out string PublishMessage
)

Parameters

  • Account
    Type: System.String

    Represents the GUID of the account registry key. Blog account settings are stored in the registry at \\HKCU\Software\Microsoft\Office\Common\Blog\Account.

  • ParentWindow
    Type: System.Int32

    Contains the HWND for the window Microsoft Office Word is calling from.

  • xHTML
    Type: System.String

    Represents the xHTML of the current document.

  • Categories
    Type: System.Array

    A list of categories supported by the provider.

  • Draft
    Type: System.Boolean

    Specifies whether this is a draft version of the post.

  • PostID
    Type: System.String

    The ID of the original post if this post has been republished.

  • PublishMessage
    Type: System.String

    Specifies what is displayed in the publish bar.

See Also

Reference

IBlogExtensibility Interface

IBlogExtensibility Members

Microsoft.Office.Core Namespace