SPWebPartManager.GetServerRelativeClassResourcePath 方法
获取指定的 Web 部件类的服务器相对 URL。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function GetServerRelativeClassResourcePath ( _
web As SPWeb, _
webPartType As Type _
) As String
用法
Dim web As SPWeb
Dim webPartType As Type
Dim returnValue As String
returnValue = SPWebPartManager.GetServerRelativeClassResourcePath(web, _
webPartType)
public static string GetServerRelativeClassResourcePath(
SPWeb web,
Type webPartType
)
参数
web
类型:Microsoft.SharePoint.SPWeb与 Web 部件关联的网站。
webPartType
类型:System.Type指定的 Web 部件的类型。
返回值
类型:System.String
指定的 Web 部件类服务器相对 URL。
备注
此方法返回指定的 Web 部件类的服务器相对 URL。