Share via


IMLPropertySet::SetSTRING (Compact 7)

3/12/2014

This method sets a string property.

Syntax

HRESULT SetSTRING(
  ULONG propertyID,
  WCHAR *pwchValue,
  ULONG cchValue
);

Parameters

  • propertyID
    [in] ID of the property.
  • pwchValue
    [in] Pointer to a WCHAR buffer that will be used to set the BSTR property value of the property. This sets the value of a BSTR property.
  • cchValue
    [in] Number of characters in the string.

Return Values

Returns the HRESULT values shown in the following table.

Value Description

S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_POINTER

The pwchValue parameter is invalid.

E_FAIL

The method was not successful.

E_MEMORY

An out of memory error occurred.

Requirements

Header

mlibdll.h,
mlibdll.idl

Library

mlibdll.lib

See Also

Reference

IMLPropertySet