IVsSettingsStorageContainer.GetValue(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定键的值。
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
键。
返回
值。
注解
如果没有具有给定键名称的映射项,或者如果名称标识了子集合而不是字符串,则 GetValue 和 GetMultiKeyValue 返回 E_INVALIDARG。 GetValue 仅搜索顶级子集中 (的值,而不搜索子集合) 。