Create meeting workspace pages programmatically in SharePoint

25. March 2011 05:43 by Rashid Aziz in Sharepoint blogs  //  Tags: ,   //   Comments (3)

You can add meeting workspaces pages with the SharePoint UI and also manage them. It is also possible that you can create workspace pages programmatically.

Here is the code to do this.

Add the following references

using Microsoft.SharePoint;
using Microsoft.SharePoint.Meetings;
//Code:

string url = SPContext.Current.Site.Url;
string newPageUrl = String.Empty;
using (SPSite site = new SPSite(url))
 {
   using (SPWeb meetingWeb = site.OpenWeb())
   {
     SPMeeting meeting = SPMeeting.GetMeetingInformation(meetingWeb);
     meeting.AddPage("Eblogin Page", meeting.InstanceId, out newPageUrl);
   }
 }

Note: [“If you give instance id you can’t manage your page through UI, If you want to add page regardless of instance you can replace meeting.InstanceId with zero(0) in the AddPage() method parameters, now it will behave same to pages added by using UI and you can manage them using user interface. ”]

Comments (3) -

Проститутки
Проститутки
6/10/2011 7:30:02 AM #

Молодые проститутки Харькова, такие же прекрасные как цветы в Харькове. Насладитесь их незабываемой компанией.

Benton
Benton
9/15/2011 12:02:49 PM #

I really like your blog and there are some interesting points made. There are so many sites out there which are badly presented that it's a pleasant suprise to find a good one.

Abdul
Abdul
9/22/2011 5:29:49 AM #

What does this code actually do? Can you provide a screen shot of what page it creates.

Pingbacks and trackbacks (1)+

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading