IVsSettingsStore.GetString(String, String, String) 方法

定义

返回字符串类型属性值。

public:
 int GetString(System::String ^ collectionPath, System::String ^ propertyName, [Runtime::InteropServices::Out] System::String ^ % value);
int GetString(std::wstring const & collectionPath, std::wstring const & propertyName, [Runtime::InteropServices::Out] std::wstring const & & value);
public int GetString (string collectionPath, string propertyName, out string value);
abstract member GetString : string * string *  -> int
Public Function GetString (collectionPath As String, propertyName As String, ByRef value As String) As Integer

参数

collectionPath
String

中集合的路径。

propertyName
String

中属性名称。

value
String

弄值。 这应作为未初始化的 BSTR 传递,方法会分配足够的空间来保存属性的值。 调用方应调用 SysFreeString,以便在不再需要 BSTR 时释放它。

返回

Int32

如果 S_OK 返回属性,则返回; 如果属性不存在,则返回; E_INVALIDARG 如果属性类型不是字符串,则返回。

适用于