KnownFolders.GetFolderPath Method

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.Platform
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)

Usage

'Usage
Dim folder As KnownFolder
Dim returnValue As String

returnValue = KnownFolders.GetFolderPath(folder)

Syntax

'Declaration
Public Shared Function GetFolderPath ( _
    folder As KnownFolder _
) As String
public static string GetFolderPath (
    KnownFolder folder
)
public:
static String^ GetFolderPath (
    KnownFolder folder
)
public static String GetFolderPath (
    KnownFolder folder
)
public static function GetFolderPath (
    folder : KnownFolder
) : String

Parameters

  • folder

Return Value

Returns String.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

KnownFolders Class
KnownFolders Members
Microsoft.OneGet.Utility.Platform Namespace