IVsSettingsStorageContainer.GetValue(String) 方法

定义

获取指定键的值。

public:
 System::String ^ GetValue(System::String ^ key);
public:
 Platform::String ^ GetValue(Platform::String ^ key);
std::wstring GetValue(std::wstring const & key);
public string GetValue (string key);
abstract member GetValue : string -> string
Public Function GetValue (key As String) As String

参数

key
String

键。

返回

String

值。

注解

如果没有具有给定键名称的映射项,或者如果名称标识了子集合而不是字符串,则 GetValue 和 GetMultiKeyValue 返回 E_INVALIDARG。 GetValue 仅搜索顶级子集中 (的值,而不搜索子集合) 。

适用于