Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

ValidateAntiForgeryTokenAttribute.Salt Property

Note: This API is now obsolete.

Gets or sets the salt string.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

[ObsoleteAttribute("The 'Salt' property is deprecated. To specify custom data to be embedded within the token, use the static AntiForgeryConfig.AdditionalDataProvider property.", 
	true)]
public string Salt { get; set; }

Property Value

Type: System.String
The salt string.
Show:
© 2015 Microsoft