Share via


IXamlType.CreateFromString(String) 方法

定义

基于字符串创建类型系统表示形式。 此用法main方案是创建枚举值并映射相应的枚举。

public:
 Platform::Object ^ CreateFromString(Platform::String ^ value);
IInspectable CreateFromString(winrt::hstring const& value);
public object CreateFromString(string value);
function createFromString(value)
Public Function CreateFromString (value As String) As Object

参数

value
String

Platform::String

winrt::hstring

要从中创建的字符串。

返回

Object

Platform::Object

IInspectable

生成的类型系统表示形式。

适用于