This topic has not yet been rated - Rate this topic

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
protected string ServerRelativeClassResourcePath { get; }

Property Value

Type: System.String
A String containing the path.

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ