共用方式為


IXamlType.CreateFromString(String) 方法

定義

根據字串建立型別系統標記法。 此使用方式的主要案例是建立列舉值,並對應適當的列舉。

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

產生的型別系統標記法。

適用於