BinaryData.FromString 方法

定义

重载

FromString(String)

BinaryData通过使用 UTF-8 编码将字符串转换为字节,从字符串创建实例。

FromString(String, String)

FromString(String)

Source:
BinaryData.cs
Source:
BinaryData.cs
Source:
BinaryData.cs

BinaryData通过使用 UTF-8 编码将字符串转换为字节,从字符串创建实例。

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

参数

data
String

字符串数据。

返回

表示 的 UTF-8 编码的值 data

适用于

FromString(String, String)

Source:
BinaryData.cs
Source:
BinaryData.cs
Source:
BinaryData.cs
public:
 static BinaryData ^ FromString(System::String ^ data, System::String ^ mediaType);
public static BinaryData FromString (string data, string? mediaType);
static member FromString : string * string -> BinaryData
Public Shared Function FromString (data As String, mediaType As String) As BinaryData

参数

data
String
mediaType
String

返回

适用于