Set method
Sets the value of the custom property with the given name. 
Syntax
 
C++
HRESULT 
 Set( 
   BSTR Name, 
   VARIANT Value) 
 
Scripting languages
Object.Set Name as String, Value 
 as Variant |  
 
Parameters
 
Name 
Specifies the name of the CustomProperty to set.  
Value
The value of the CustomProperty. 
Return value
 
Remarks
 
	For items and members, the following VARIANT types are 
 currently supported: Bool, Short, Long, Date, String.  In addition, 
 for items, the VARIANT type IDispatch == IERUMemberSet will be supported.  
	If CustomProperty::Get cannot find a property with the 
 given name, an EROOM_E_NOTFOUND exception is thrown.          
	If CustomProperty::Set tries to set a property value 
 with an unsupported type (includes VT_EMPTY), an E_INVALIDARG exception 
 is thrown. Any attempt to set or get a property with an external name 
 whose length exceeds this value will result in an E_INVALIDARG exception.  
	There is currently no method for deleting a custom property.  
 
Go to Top  | 
 Home 
 
Applies to 
IERUCustomProperty  |