共用方式為


WebPart.ServerRelativeClassResourcePath property

取得網頁組件類別資源的伺服器相對路徑。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Protected ReadOnly Property ServerRelativeClassResourcePath As String
    Get
'用途
Dim value As String

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

Property value

Type: System.String
包含路徑String 。

備註

擷取使用ServerRelativeClassResourcePath屬性所傳回的瀏覽器的前置詞資源 url 的路徑。此路徑不包含在終止正斜線或反斜線。此路徑也可用以指向當地語系化目錄。

此屬性只有在執行階段才能使用。

請參閱

參照

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace