WebPart.ServerRelativeClassResourcePath 属性

获取对 Web 部件类资源的相对于服务器的路径。

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

语法

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

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

属性值

类型:System.String
包含路径String 。

备注

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

此属性只在运行时可用。

另请参阅

引用

WebPart 类

WebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间