SuperMap.Connector.DataProvider.DeleteField C# (CSharp) Method

DeleteField() public method

public DeleteField ( string datasourceName, string datasetName, string fieldName ) : bool
datasourceName string
datasetName string
fieldName string
return bool
        public bool DeleteField(string datasourceName, string datasetName, string fieldName)
        {
#if NET40
            if (string.IsNullOrWhiteSpace(datasourceName))
            {
                throw new ArgumentNullException("datasourceName", Resources.ArgumentIsNotNull);
            }
            if (string.IsNullOrWhiteSpace(datasetName))
            {
                throw new ArgumentNullException("datasetName", Resources.ArgumentIsNotNull);
            }
            if (string.IsNullOrWhiteSpace(fieldName))
            {
                throw new ArgumentNullException("fieldName", Resources.ArgumentIsNotNull);
            }
#else
            if (string.IsNullOrEmpty(datasourceName))
            {
                throw new ArgumentNullException("datasourceName", Resources.ArgumentIsNotNull);
            }
            if (string.IsNullOrEmpty(datasetName))
            {
                throw new ArgumentNullException("datasetName", Resources.ArgumentIsNotNull);
            }
            if (string.IsNullOrEmpty(fieldName))
            {
                throw new ArgumentNullException("fieldName", Resources.ArgumentIsNotNull);
            }
#endif
            string uri = string.Format("{0}/data/datasources/{1}/datasets/{2}/fields/{3}.json?_method=DELETE",
               this._serviceUrl, HttpUtility.UrlEncode(datasourceName),
               HttpUtility.UrlEncode(datasetName), HttpUtility.UrlEncode(fieldName));
            string result = SynchHttpRequest.GetRequestString(uri);
            return JsonConvert.DeserializeObject<Succeed>(result).succeed;
        }
        #endregion