다음을 통해 공유


WebPart.ServerRelativeClassResourcePath Property

Gets the server-relative path to Web Part class resources.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected ReadOnly Property ServerRelativeClassResourcePath As String
    Get
'Usage
Dim value As String

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

Property Value

Type: System.String
A String containing the path.

Remarks

Use the path returned by the ServerRelativeClassResourcePath property to prefix resource URLs for the browser to fetch. This path does not contain a terminating slash or backslash. This path can also be used to point to a localization directory.

This property is available only at run time.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace