SPMeeting.MeetingCountRecurring field

Specifies a constant that indicates a recurring meeting.

Namespace:  Microsoft.SharePoint.Meetings
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Const MeetingCountRecurring As Short
'Usage
Dim value As Short

value = SPMeeting.MeetingCountRecurring
public const short MeetingCountRecurring

Remarks

You can use the MeetingCountRecurring constant to test the value of the MeetingCount property. If the value returned by the MeetingCount property is equal to the MeetingCountRecurring constant, then the SPMeeting object represents a recurring meeting.

Examples

The following console application finds all the Meeting Workspace subsites below a Web site, determines whether they are associated with a recurring meeting, and prints the information to the console.

Imports System
Imports Microsoft.SharePoint
Imports Microsoft.SharePoint.Meetings

Module ConsoleApp
   Sub Main()
      Using siteCollection As SPSite = New SPSite("https://localhost")
         Using webSite As SPWeb = siteCollection.OpenWeb()
            Dim web As SPWeb
            For Each web In webSite.Webs
               If SPMeeting.IsMeetingWorkspaceWeb(web) Then
                  Dim meeting As SPMeeting = SPMeeting.GetMeetingInformation(web)
                  Dim bRecurring As Boolean = (meeting.MeetingCount = SPMeeting.MeetingCountRecurring)
                  Console.WriteLine("The {0} workspace {1} used for a recurring meeting.", _
                                     web.Title, IIf(bRecurring, "is", "is not"))
               End If
               web.Dispose()
            Next web
         End Using
      End Using
      Console.Write(vbCrLf + "Press ENTER to continue...")
      Console.ReadLine()
   End Sub
End Module
using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Meetings;

namespace Test
{
   class ConsoleApp
   {
      static void Main(string[] args)
      {
         using (SPSite siteCollection = new SPSite("https://localhost"))
         {
            using (SPWeb webSite = siteCollection.OpenWeb())
            {
               foreach (SPWeb web in webSite.Webs)
               {
                  if (SPMeeting.IsMeetingWorkspaceWeb(web))
                  {
                     SPMeeting meeting = SPMeeting.GetMeetingInformation(web);
                     bool bRecurring = (meeting.MeetingCount == SPMeeting.MeetingCountRecurring);
                     Console.WriteLine("The {0} workspace {1} used for a recurring meeting.",
                                        web.Title, bRecurring ? "is": "is not");
                  }
                  web.Dispose();
               }
            }
         } 
         Console.Write("\nPress ENTER to continue...");
         Console.ReadLine();
      }
   }
}

See also

Reference

SPMeeting class

SPMeeting members

Microsoft.SharePoint.Meetings namespace

MeetingCount