Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ClassResourcePath property

WebPart.ClassResourcePath property

Gets the base path to Web Part class resources.

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

protected string ClassResourcePath { get; }

Property value

Type: System.String
A string that specifies the path to a Web Part's class resources.

Use the path returned by the ClassResourcePath 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.

The ClassResourcePath property is available only at run time.

© 2015 Microsoft