IVsSettingsStore.GetString(String, String, String) Método

Definição

Retorna um valor de propriedade de tipo de cadeia de caracteres.

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

Parâmetros

collectionPath
String

no O caminho da coleção.

propertyName
String

no O nome da propriedade.

value
String

fora O valor. Isso deve ser passado como um BSTR não inicializado e o método alocará espaço suficiente para conter o valor da propriedade. O chamador deve chamar SysFreeString para liberar o BSTR quando ele não for mais necessário.

Retornos

Int32

Retorna S_OK se a propriedade foi retornada, E_INVALIDARG se a propriedade não existir ou se o tipo de propriedade não for uma cadeia de caracteres.

Aplica-se a