SPWebPartManager.GetClassResourcePath method

Gets the full URL of a specified Web Part type.

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

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

  • webPartType
    Type: System.Type

    The 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.

See also

Reference

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace