SupportsAttributeMarkupAttribute 类

启用相应的 Web 部件,以将序列化到使用标准控件属性标记页面标记。

继承层次结构

System.Object
  System.Attribute
    Microsoft.SharePoint.WebPartPages.SupportsAttributeMarkupAttribute

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SupportsAttributeMarkupAttribute _
    Inherits Attribute
用法
Dim instance As SupportsAttributeMarkupAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SupportsAttributeMarkupAttribute : Attribute

备注

If a Web Part derives from WebPart, and does not use key features from System.Web.UI.WebControls.WebParts.WebPart, such as the System.Web.UI.WebControls.WebParts.PersonalizableAttribute, then it will be serialized into page markup as XML.

如果 Web 部件提供其复杂的公共属性的所有TypeConverters它可以将此属性设置为true ,并将序列化到使用标准控件属性标记页面标记中 Web 部件。

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

SupportsAttributeMarkupAttribute 成员

Microsoft.SharePoint.WebPartPages 命名空间