Share via


RequestExtensions.ToUtf8String Method

Creates a string from a collection of UTF8 bytes This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.PackageProvider.Bootstrap
Assembly: Microsoft.OneGet.PackageProvider.Bootstrap (in Microsoft.OneGet.PackageProvider.Bootstrap.dll)

Usage

'Usage
Dim bytes As IEnumerable(Of Byte)
Dim returnValue As String

returnValue = RequestExtensions.ToUtf8String(bytes)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToUtf8String ( _
    bytes As IEnumerable(Of Byte) _
) As String
[ExtensionAttribute] 
public static string ToUtf8String (
    IEnumerable<byte> bytes
)
[ExtensionAttribute] 
public:
static String^ ToUtf8String (
    IEnumerable<unsigned char>^ bytes
)
/** @attribute ExtensionAttribute() */ 
public static String ToUtf8String (
    IEnumerable<byte> bytes
)
ExtensionAttribute 
public static function ToUtf8String (
    bytes : IEnumerable<byte>
) : String

Parameters

  • bytes
    The bytes.

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

RequestExtensions Class
RequestExtensions Members
Microsoft.OneGet.PackageProvider.Bootstrap Namespace