IContactProperties::SetString method (icontact.h)
Sets the string value of a specified property to that of a specified null-terminated string.
Syntax
HRESULT SetString(
[in] LPCWSTR pszPropertyName,
[in] DWORD dwFlags,
[in] LPCWSTR pszValue
);
Parameters
[in] pszPropertyName
Type: LPCWSTR
Specifies the property to set.
[in] dwFlags
Type: DWORD
CGD_DEFAULT can be used to create or overwrite value at pszPropertyName.
[in] pszValue
Type: LPWSTR
Specifies null-terminated string to store.
Return value
Type: HRESULT
Returns one of the following values:
Return code | Description |
---|---|
|
Value is set at this property. |
|
Property name invalid for set. |
|
Unable to set value for this property due to schema. |
Remarks
To set a single-level property, set pszPropertyName to the property name.
To set a property from a multi-value property, set pszPropertyName to the form: toplevel/secondlevel[4]/thirdlevel.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | icontact.h (include Contact.h) |
DLL | Wab32.dll (Version 6.0 or later) |