DeviceProfileInfoProviderGetCurrentDeviceProfilesInternal Method |
Returns current device profile info based on current user agent.
The value based on the user agent can be overwritten by query string parameter or by cookie (CMSCurrentDeviceInfo).
Namespace: CMS.DeviceProfilesAssembly: CMS.DeviceProfiles (in CMS.DeviceProfiles.dll) Version: 12.0.0
Syntax protected virtual List<DeviceProfileInfo> GetCurrentDeviceProfilesInternal(
string siteName,
bool loadFromCookies,
bool canBeOverridden
)
Parameters
- siteName
- Type: SystemString
Site name - loadFromCookies
- Type: SystemBoolean
Indicates if device profile is loaded from cookie instead of current browser device - canBeOverridden
- Type: SystemBoolean
Indicates if device profile can be overridden by URL parameter or cookie at all.
Return Value
Type:
ListDeviceProfileInfoSee Also