Share via

SPUtility.GetGenericSetupPath method

NOTE: This API is now obsolete.

Retrieves the full local path for the specified subdirectory.

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


<ObsoleteAttribute("use GetVersionedGenericSetupPath to explicitly specify version")> _
Public Shared Function GetGenericSetupPath ( _
    strSubdir As String _
) As String
Dim strSubdir As String
Dim returnValue As String

returnValue = SPUtility.GetGenericSetupPath(strSubdir)
[ObsoleteAttribute("use GetVersionedGenericSetupPath to explicitly specify version")]
public static string GetGenericSetupPath(
    string strSubdir


  • strSubdir
    Type: System.String

    A string that contains the Web site-relative URL for the subdirectory. For example, Lists/Announcements.

Return value

Type: System.String
A string that contains the full local path. For example, %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\Lists and %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\Lists\Announcements.

See also


SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace