Metodo IFhTarget::GetStringProperty (fhcfg.h)

Recupera una proprietà stringa della destinazione di backup cronologia file rappresentata da un'interfaccia IFhTarget .

Nota

IFhTarget è deprecato e può essere modificato o non disponibile nelle versioni future.

Sintassi

HRESULT GetStringProperty(
  [in]  FH_TARGET_PROPERTY_TYPE PropertyType,
  [out] BSTR                    *PropertyValue
);

Parametri

[in] PropertyType

Specifica la proprietà stringa. Vedere l'enumerazione FH_TARGET_PROPERTY_TYPE per l'elenco dei possibili tipi di proprietà stringa.

[out] PropertyValue

Questo parametro deve essere NULL in input. Nell'output riceve un puntatore a una stringa contenente la proprietà string. Questa stringa viene allocata chiamando SysAllocString. È necessario chiamare SysFreeString per liberare la stringa quando non è più necessaria.

Valore restituito

Se questo metodo ha esito positivo, restituisce S_OK. In caso contrario, restituisce un codice di errore HRESULT , ad esempio uno dei valori definiti nel file di intestazione FhErrors.h.

Commenti

L'enumerazione FH_TARGET_PROPERTY_TYPE definisce i tipi di proprietà per le proprietà stringa e le proprietà numeriche. Tuttavia, il metodo IFhTarget::GetStringProperty può essere usato solo per recuperare le proprietà stringa. Le proprietà numeriche devono essere recuperate chiamando il metodo IFhTarget::GetNumericalProperty .

Requisiti

   
Client minimo supportato Windows 8 [solo app desktop]
Server minimo supportato Windows Server 2012 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione fhcfg.h

Vedi anche

FH_TARGET_PROPERTY_TYPE

IFhTarget

IFhTarget::GetNumericalProperty