GetValue() public method

Gets the value associated with the specified key.
Throws an exception if no value is associated with the specified key.
public GetValue ( string key ) : object
key string The key of the value to get.
return object
Ejemplo n.º 1
0
        /// <summary>Add or update a SQLNET value associated with the specified key.</summary>
        /// <param name="key">The key of the value to add or update.</param>
        /// <param name="value">The SQLNET value to add or update associated with the specified key.</param>
        /// <returns>A fluent SQLNET object.</returns>
        public SQLNET ValueSQLNET(SqlString key, SQLNET value)
        {
            var internalValue = value.GetValue(InternalValueName);

            return(InternalValue(key, internalValue.GetType(), internalValue));
        }
Ejemplo n.º 2
0
 /// <summary>Add or update a SQLNET value associated with the specified key.</summary>
 /// <param name="key">The key of the value to add or update.</param>
 /// <param name="value">The SQLNET value to add or update associated with the specified key.</param>
 /// <returns>A fluent SQLNET object.</returns>
 public SQLNET ValueSQLNET(SqlString key, SQLNET value)
 {
     var internalValue = value.GetValue(InternalValueName);
     return InternalValue(key, internalValue.GetType(), internalValue);
 }