BinaryData.FromString(String) Method

Definition

Creates a BinaryData instance from a string by converting the string to bytes using the UTF-8 encoding.

public static BinaryData FromString (string data);
static member FromString : string -> BinaryData
Public Shared Function FromString (data As String) As BinaryData

Parameters

data
System.String

The string data.

Returns

BinaryData

A value representing the UTF-8 encoding of data.

Applies to