/// <summary>
 /// Get the meta-data for an individual value entry.
 /// </summary>
 /// <param name="valueName">
 /// the value to get the meta-data for.
 /// </param>
 /// <returns>
 /// The requested meta-data.
 /// </returns>
 public IValueMetaData GetValue(string valueName)
 {
     using (var values = _engine.MetaData.getValuesForProperty(_source, _engine))
     using (var key = new ValueMetaDataKeySwig(Name, valueName))
     {
         return new ValueMetaData(_engine,
             values.getByKey(key));
     }
 }
        public ValueMetaDataSwig getByKey(ValueMetaDataKeySwig key)
        {
            global::System.IntPtr cPtr = DeviceDetectionHashEngineModulePINVOKE.ValueMetaDataCollectionSwig_getByKey(swigCPtr, ValueMetaDataKeySwig.getCPtr(key));
            ValueMetaDataSwig     ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ValueMetaDataSwig(cPtr, true);

            if (DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Pending)
            {
                throw DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        /// <summary>
        /// Get the meta-data for the specified property and value from
        /// this profile.
        /// </summary>
        /// <param name="propertyName">
        /// The name of the property to get the meta-data for.
        /// </param>
        /// <param name="valueName">
        /// The value to get the meta-data for.
        /// </param>
        /// <returns>
        /// The value meta-data for the specified value if it exists
        /// on this profile.
        /// </returns>
        public IValueMetaData GetValue(string propertyName, string valueName)
        {
            IValueMetaData result = null;

            using (var values = _engine.MetaData.getValuesForProfile(_source))
            {
                using (var key = new ValueMetaDataKeySwig(
                           propertyName,
                           valueName))
                {
#pragma warning disable CA2000 // Dispose objects before losing scope
                    // The ValueMetaDataSwig instance is used and disposed
                    // by the ValueMetaData object.
                    var value = values.getByKey(key);
#pragma warning restore CA2000 // Dispose objects before losing scope
                    if (value != null)
                    {
                        result = new ValueMetaData(_engine, value);
                    }
                }
            }
            return(result);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ValueMetaDataKeySwig obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public ValueMetaDataSwig getByKey(ValueMetaDataKeySwig key)
 {
     return(_object.getByKey(key));
 }