Partilhar via


SPCalendarViewStyleCollection.CalendarViewStyleByName Method

Returns the calendar view style with the specified display name.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function CalendarViewStyleByName ( _
    strDisplayName As String _
) As SPCalendarViewStyle
'Usage
Dim instance As SPCalendarViewStyleCollection
Dim strDisplayName As String
Dim returnValue As SPCalendarViewStyle

returnValue = instance.CalendarViewStyleByName(strDisplayName)
public SPCalendarViewStyle CalendarViewStyleByName(
    string strDisplayName
)

Parameters

  • strDisplayName
    Type: System.String

    A string that contains the display name of the calendar view style.

Return Value

Type: Microsoft.SharePoint.SPCalendarViewStyle
An SPCalendarViewStyle object that represents the calendar view style.

See Also

Reference

SPCalendarViewStyleCollection Class

SPCalendarViewStyleCollection Members

Microsoft.SharePoint Namespace