View Source
Class ViewDataExtensions
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public static class ViewDataExtensions
Fields
View Source
TokenExternalSignInError
Declaration
public const string TokenExternalSignInError = "ExternalSignInError"
Field Value
Type |
Description |
System.String |
|
View Source
TokenInstallApiBaseUrl
Declaration
public const string TokenInstallApiBaseUrl = "InstallApiBaseUrl"
Field Value
Type |
Description |
System.String |
|
View Source
TokenPasswordResetCode
Declaration
public const string TokenPasswordResetCode = "PasswordResetCode"
Field Value
Type |
Description |
System.String |
|
View Source
TokenUmbracoBaseFolder
Declaration
public const string TokenUmbracoBaseFolder = "UmbracoBaseFolder"
Field Value
Type |
Description |
System.String |
|
View Source
TokenUmbracoPath
Declaration
public const string TokenUmbracoPath = "UmbracoPath"
Field Value
Type |
Description |
System.String |
|
Methods
View Source
FromTempData(ViewDataDictionary, TempDataDictionary, String)
Declaration
public static bool FromTempData(this ViewDataDictionary viewData, TempDataDictionary tempData, string token)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
TempDataDictionary |
tempData |
|
System.String |
token |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
GetExternalSignInError(ViewDataDictionary)
Declaration
[Obsolete("Use GetExternalSignInProviderErrors instead")]
public static IEnumerable<string> GetExternalSignInError(this ViewDataDictionary viewData)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
View Source
GetExternalSignInProviderErrors(ViewDataDictionary)
Used by the back office login screen to get any registered external login provider errors
Declaration
public static BackOfficeExternalLoginProviderErrors GetExternalSignInProviderErrors(this ViewDataDictionary viewData)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
Returns
View Source
GetInstallApiBaseUrl(ViewDataDictionary)
Declaration
public static string GetInstallApiBaseUrl(this ViewDataDictionary viewData)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
Returns
Type |
Description |
System.String |
|
View Source
GetPasswordResetCode(ViewDataDictionary)
Declaration
public static string GetPasswordResetCode(this ViewDataDictionary viewData)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
Returns
Type |
Description |
System.String |
|
View Source
GetUmbracoBaseFolder(ViewDataDictionary)
Declaration
public static string GetUmbracoBaseFolder(this ViewDataDictionary viewData)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
Returns
Type |
Description |
System.String |
|
View Source
GetUmbracoPath(ViewDataDictionary)
Declaration
public static string GetUmbracoPath(this ViewDataDictionary viewData)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
Returns
Type |
Description |
System.String |
|
View Source
SetExternalSignInError(ViewDataDictionary, IEnumerable<String>)
Declaration
[Obsolete("Use SetExternalSignInProviderErrors instead")]
public static void SetExternalSignInError(this ViewDataDictionary viewData, IEnumerable<string> value)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
System.Collections.Generic.IEnumerable<System.String> |
value |
|
View Source
SetExternalSignInProviderErrors(ViewDataDictionary, BackOfficeExternalLoginProviderErrors)
Used by the back office controller to register any external login provider errors
Declaration
public static void SetExternalSignInProviderErrors(this ViewDataDictionary viewData, BackOfficeExternalLoginProviderErrors errors)
Parameters
View Source
SetInstallApiBaseUrl(ViewDataDictionary, String)
Declaration
public static void SetInstallApiBaseUrl(this ViewDataDictionary viewData, string value)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
System.String |
value |
|
View Source
SetPasswordResetCode(ViewDataDictionary, String)
Declaration
public static void SetPasswordResetCode(this ViewDataDictionary viewData, string value)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
System.String |
value |
|
View Source
SetUmbracoBaseFolder(ViewDataDictionary, String)
Declaration
public static void SetUmbracoBaseFolder(this ViewDataDictionary viewData, string value)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
System.String |
value |
|
View Source
SetUmbracoPath(ViewDataDictionary, String)
Declaration
public static void SetUmbracoPath(this ViewDataDictionary viewData, string value)
Parameters
Type |
Name |
Description |
ViewDataDictionary |
viewData |
|
System.String |
value |
|