Adds a new item into the cache using the specified absolute expiration data and region name 

 
            
            
            
            
            
            
            
            public virtual bool Add( 
   string ,
   object ,
   DateTime ,
   string 
)
             
        
            
            'Declaration
 
Public Overloads Overridable Function Add( _
   ByVal  As String, _
   ByVal  As Object, _
   ByVal  As Date, _
   ByVal  As String _
) As Boolean
             
        
            
            'Usage
 
Dim instance As ObjectCache
Dim key As String
Dim value As Object
Dim absoluteExpiration As Date
Dim regionName As String
Dim value As Boolean
 
value = instance.Add(key, value, absoluteExpiration, regionName)
             
        
            
            
            
        
            
            
            
        
            
            public:
virtual bool Add( 
   String^ ,
   Object^ ,
   DateTime ,
   String^ 
) 
             
        
             
        
            Parameters
- key
 
- Unique identifier of the cache item.
 - value
 
- Data for the cache item.
 - absoluteExpiration
 
- Absolute expiration date to use.
 - regionName
 
- Optional name of a region in cache.
 
            
            Return Value
true if the item was added successfully, false if there is an item in the cache that has the same key.