CloudinaryDotNet.Actions.DelDerivedResParams.ToParamsDictionary C# (CSharp) Method

ToParamsDictionary() public method

Maps object model to dictionary of parameters in cloudinary notation
public ToParamsDictionary ( ) : object>.SortedDictionary
return object>.SortedDictionary
        public override SortedDictionary<string, object> ToParamsDictionary()
        {
            SortedDictionary<string, object> dict = base.ToParamsDictionary();

            if (DerivedResources != null && DerivedResources.Count > 0)
                dict.Add("derived_resource_ids", DerivedResources);

            return dict;
        }

Usage Example

Esempio n. 1
0
        public DelDerivedResResult DeleteDerivedResources(DelDerivedResParams parameters)
        {
            UrlBuilder urlBuilder = new UrlBuilder(
                m_api.ApiUrlV.
                Add("derived_resources").
                BuildUrl(),
                parameters.ToParamsDictionary());

            using (HttpWebResponse response = m_api.Call(
                HttpMethod.DELETE, urlBuilder.ToString(), null, null))
            {
                DelDerivedResResult result = DelDerivedResResult.Parse(response);
                return result;
            }
        }
All Usage Examples Of CloudinaryDotNet.Actions.DelDerivedResParams::ToParamsDictionary