Compartilhar via


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

  • 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