Campo SPMeeting.MeetingCountRecurring
Especifica una constante que indica una reunión periódica.
Espacio de nombres: Microsoft.SharePoint.Meetings
Ensamblado: Microsoft.SharePoint (en Microsoft.SharePoint.dll)
Sintaxis
'Declaración
Public Const MeetingCountRecurring As Short
'Uso
Dim value As Short
value = SPMeeting.MeetingCountRecurring
public const short MeetingCountRecurring
Comentarios
Puede utilizar la constante MeetingCountRecurring para probar el valor de la propiedad MeetingCount . Si el valor devuelto por la propiedad MeetingCount es igual a la constante MeetingCountRecurring , el objeto SPMeeting representa una reunión periódica.
Ejemplos
La aplicación de consola siguiente busca todos los subsitios de área de reuniones por debajo de un sitio Web, determina si están asociados con una reunión periódica y se imprime la información en la consola.
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();
}
}
}