共用方式為


SPCalendarViewStyleCollection class

表示SPCalendarViewStyle物件的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPCalendarViewStyleCollection

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

Syntax

'宣告
Public NotInheritable Class SPCalendarViewStyleCollection _
    Inherits SPBaseCollection
'用途
Dim instance As SPCalendarViewStyleCollection
public sealed class SPCalendarViewStyleCollection : SPBaseCollection

備註

使用SPCalendarViewStyleCollection建構函式,傳回與指定的清單檢視,用於指定清單相關聯的行事曆檢視樣式的集合。

若要從集合傳回單一行事曆檢視樣式中使用索引子。例如,如果集合指派給一個名為 myCalendarViewStyles 變數中,使用在 C# 的myCalendarViewStyles[index]或 Visual Basic,其中index是集合中的行事曆檢視樣式索引編號,或者是行事曆檢視樣式範本名稱中的myCalendarViewStyles(index) 。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPCalendarViewStyleCollection members

Microsoft.SharePoint namespace