IMimePropertySet::QueryProp Method

Compares the value of a property in the property set with the specified string.

Syntax

HRESULT QueryProp(
  [in]  LPCSTR pszName,
  [in]  LPCSTR pszCriteria,
  [in]  boolean fSubString,
  [in]  boolean fCaseSensitive
);

Parameters

pszName [in]

Type: LPCSTR

Specifies the property name or ID.

pszCriteria [in]

Type: LPCSTR

Specifies the string to compare the property to.

fSubString [in]

Type: boolean

Specifies whether pszCriteria is a sub-string of the property.

ValueMeaning
false

pszCriteria equals the value of the property.

true

pszCriteria is a sub-string of the property.

 

fCaseSensitive [in]

Type: boolean

Specifies whether the string comparison is case-sensitive.

ValueMeaning
false

The string comparison is case-insensitive.

true

The string comparison is case-sensitive.

 

Return Value

Type: HRESULT

Returns one of the following values.

Return codeDescription
S_OK

Indicates that the values are equal.

S_FALSE

Indicates that the values are not equal.

E_FAIL

Indicates that an unknown error has occurred.

E_INVALIDARG

Indicates that pszName or pszCriteria is NULL.

MIME_E_VARTYPE_NO_CONVERT

Indicates that the value of the property specified by pszName cannot be converted to a string.

 

Remarks

A property ID can also be passed into this method through the pszName parameter using the PIDTOSTR macro.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Product

Outlook Express 6.0

Header

Mimeole.h

IDL

Mimeole.idl

DLL

Inetcomm.dll (version 6.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2011

Community Additions

ADD
Show: