WebPartMobileAdapter.CreateWebPartIcon 方法
请注意:此 API 现在已过时。
作为另一种视图 Web 部件的链接或展开/折叠按钮获取 Web 部件其在某些情况下,工作方式的图标。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ObsoleteAttribute("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")> _
Protected Function CreateWebPartIcon ( _
linkType As WebPartMobileAdapter.WebPartIconLink _
) As Image
用法
Dim linkType As WebPartMobileAdapter.WebPartIconLink
Dim returnValue As Image
returnValue = Me.CreateWebPartIcon(linkType)
[ObsoleteAttribute("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
protected Image CreateWebPartIcon(
WebPartMobileAdapter.WebPartIconLink linkType
)
参数
linkType
类型:Microsoft.SharePoint.WebPartPages.WebPartMobileAdapter.WebPartIconLink一个值,指定是否图标将刚图像或可单击的控件。
返回值
类型:System.Web.UI.MobileControls.Image
呈现 Web 部件标题旁边的图标。
备注
您的代码可以仅在CreateControlsForSummaryView()或CreateControlsForDetailView()重写调用CreateWebPartIcon(WebPartMobileAdapter.WebPartIconLink) 。
如果linkType , NoLink呈现图标。如果任何其他linkType ,行为取决于浏览器的功能。如果它支持展开和折叠 Web 部件,呈现的图标用作展开/折叠按钮。否则,该图标为 Web 部件中,当摘要视图中呈现 Web 部件时的详细视图链接或链接到摘要视图中,当详细视图中呈现 Web 部件时。