共用方式為


SupportsAttributeMarkupAttribute class

可讓序列化成使用標準的控制項屬性標記的頁面標記中適當的網頁組件。

Inheritance hierarchy

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

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

Syntax

'宣告
<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

備註

如果網頁組件衍生自WebPart,而不使用索引鍵的功能,從System.Web.UI.WebControls.WebParts.WebPart,例如System.Web.UI.WebControls.WebParts.PersonalizableAttribute,然後它會序列化成網頁標記為 XML。

如果 [網頁組件提供TypeConverters所有複雜的公用屬性,它可以將這個屬性設定為true ,和 [網頁組件會序列化成使用標準的控制項屬性標記的網頁標記。

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.

請參閱

參照

SupportsAttributeMarkupAttribute members

Microsoft.SharePoint.WebPartPages namespace