Skip to content

Latest commit

 

History

History
69 lines (60 loc) · 1.57 KB

File metadata and controls

69 lines (60 loc) · 1.57 KB
title CUtlProps::IsValidValue | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
CUtlProps::IsValidValue
CUtlProps.IsValidValue
IsValidValue
dev_langs
C++
helpviewer_keywords
IsValidValue method
ms.assetid 1164556e-8d98-429c-a396-fc9a699e0e97
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CUtlProps::IsValidValue

Used to validate a value before setting a property.

Syntax

  
      virtual HRESULT CUtlPropsBase::IsValidValue(  
   ULONG /* iCurSet */,  
   DBPROP* pDBProp   
);  

Parameters

iCurSet
The index into the property-set array; zero if there is only one property set.

pDBProp
The property ID and new value in a DBPROP structure.

Return Value

A standard HRESULT. The default return value is S_OK.

Remarks

If you have any validation routines you want to run on a value that you are about to use to set a property, you should override this function. For example, you could validate DBPROP_AUTH_PASSWORD against a password table to determine a valid value.

Requirements

Header: atldb.h

See Also

CUtlProps Class