BinaryData.FromString 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
FromString(String) |
BinaryData通过使用 UTF-8 编码将字符串转换为字节,从字符串创建实例。 |
FromString(String, String) |
FromString(String)
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
- 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
- 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