MdsCompliantAttribute class

Indicates whether the script, style, and field registrations of a class are compliant with the Minimal Download Strategy (MDS) framework.

Inheritance hierarchy

System.Object
  System.Attribute
    Microsoft.SharePoint.WebControls.MdsCompliantAttribute

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Assembly Or AttributeTargets.Class)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class MdsCompliantAttribute _
    Inherits Attribute
'Usage
Dim instance As MdsCompliantAttribute
[AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Class)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class MdsCompliantAttribute : Attribute

Remarks

This custom attribute class should only be applied when all registrations—such as scripts and styles—are performed through the SPPageContentManager class methods. All controls that render inside an AjaxDelta control must either have this attribute or be in a whitelisted assembly for which all controls are compliant.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

MdsCompliantAttribute members

Microsoft.SharePoint.WebControls namespace