Share via


SPCalendarViewStyleCollection.CalendarViewStyleByName method

Returns the calendar view style with the specified display name.

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

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