This topic has not yet been rated Rate this topic

SPWebPartManager.GetServerRelativeClassResourcePath Method

Gets the server relative URL for a specified Web Part class.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
public static string GetServerRelativeClassResourcePath(
	SPWeb web,
	Type webPartType
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb
A website associated with the Web Part.
webPartType
Type: System.Type
The type of a specified Web Part.

Return Value

Type: System.String
The server relative URL for a specified Web Part class.

This method returns the server relative URL for a specified Web Part class.

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