SPUtility.GetGenericSetupPath Method
Retrieves the full local path for the specified subdirectory.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Function GetGenericSetupPath ( _
strSubdir As String _
) As String
'Usage
Dim strSubdir As String
Dim returnValue As String
returnValue = SPUtility.GetGenericSetupPath(strSubdir)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static string GetGenericSetupPath(
string strSubdir
)
Parameters
strSubdir
Type: System.StringA 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\14\Lists and %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\Lists\Announcements.