WebPart.ClassResourcePath 属性

获取对 Web 部件类资源的基路径。

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

语法

声明
Protected ReadOnly Property ClassResourcePath As String
    Get
用法
Dim value As String

value = Me.ClassResourcePath
protected string ClassResourcePath { get; }

属性值

类型:System.String
指定 Web 部件的类资源的路径string 。

备注

使用ClassResourcePath属性返回到浏览器的前缀资源 Url 的路径来获取。此路径不包含终止斜杠或反斜杠。此路径还可用于指向本地化目录。

ClassResourcePath属性只能在运行时是可用。

另请参阅

引用

WebPart 类

WebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间