plz convert this to vb.nettttttttttttttttt

thanx

attachment attachment = new attachment();
attachment.caption = "facebook.com";
attachment.name = "Publish Test";
attachment.href = "http://www.facebook.com";
attachment.description = "a sample description";

attachment.properties = new attachment_property()
{
    category = new attachment_category()
    {
        href = "http://www.facebook.com/mycategory/sample",
        text = "sample category"
    },
    ratings = "5 stars"
};

attachment.media = new List<attachment_media>(){new attachment_media_image()
                        {
                            src = "http://facebook.com/myapp/logo.jpg",
                            href = "http://www.facebook.com/myapp"
                        }};

var result = api.Stream.Publish("Publishing to stream with attachment", attachment, null, null, 0);

Recommended Answers

All 3 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.