RequestExtensions.ToUtf8String Method

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

Namespace: Microsoft.OneGet.ServicesProvider.Common
Assembly: Microsoft.OneGet.ServicesProvider.Common (in Microsoft.OneGet.ServicesProvider.Common.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.ServicesProvider.Common Namespace