请注意:此 API 现在已过时。
获取用于在运行时呈现 Web 部件框架的框架类型。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ObsoleteAttribute("Use WebPartZone.GetEffectiveChromeType() instead.")> _
Public ReadOnly Property EffectiveFrameType As FrameType
Get
用法
Dim instance As WebPart
Dim value As FrameType
value = instance.EffectiveFrameType
[ObsoleteAttribute("Use WebPartZone.GetEffectiveChromeType() instead.")]
public FrameType EffectiveFrameType { get; }
属性值
类型:Microsoft.SharePoint.WebPartPages.FrameType
FrameType 枚举值之一。默认值为FrameType.Standard。
备注
在运行时,此属性才可用。当 Web 部件的FrameType值设置为Default时, EffectiveFrameType属性的值将为FrameType.Standard ,除非已设置包含 Web 部件的WebPartZoneFrameType属性的值,在这种情况下EffectiveFrameType属性将反映该值。
在 ASP.NET Render事件调用之前,可以更改EffectiveFrameType、 ContainerWidth和Permissions属性的值。这是因为ZoneID属性可能已更改,这会影响这些属性的值。这些属性都有其最终的值,并考虑所需的任何区域发生更改,当调用 Web 部件的RenderWebPart方法。