SPWebPartManager.GetClassResourcePath Method
Gets the full URL of a specified Web Part type.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function GetClassResourcePath ( _
web As SPWeb, _
webPartType As Type _
) As String
'Usage
Dim web As SPWeb
Dim webPartType As Type
Dim returnValue As String
returnValue = SPWebPartManager.GetClassResourcePath(web, _
webPartType)
public static string GetClassResourcePath(
SPWeb web,
Type webPartType
)
Parameters
web
Type: Microsoft.SharePoint.SPWebA website associated with the Web Part.
webPartType
Type: System.TypeThe type of a specified Web Part.
Return Value
Type: System.String
The full URL of a specified Web Part type.
Remarks
This method returns the full URL of a specified Web Part type.