Table of Contents

Class PageInfoViewModelExtensions

Namespace
Dynamicweb.Frontend
Assembly
Dynamicweb.dll

Extension methods for PageInfoViewModel.

public static class PageInfoViewModelExtensions
Inheritance
PageInfoViewModelExtensions
Inherited Members

Methods

TryGetImageFile(PageInfoViewModel, out ImageFileViewModel?)

Tries to get the ImageFileViewModel for the Image.

public static bool TryGetImageFile(this PageInfoViewModel viewModel, out ImageFileViewModel? image)

Parameters

viewModel PageInfoViewModel

The user view model.

image ImageFileViewModel

When this method returns true, it contains the ImageFileViewModel object, otherwise null.

Returns

bool

True if the Image has path and the associated file exists, otherwise false.

To top