コード例 #1
0
        /// <summary>
        /// Parses the JSON error text.
        /// </summary>
        /// <param name="jsonErrorText">The JSON error response from the cloud
        /// storage server.</param>
        private void ParseJsonError(string jsonErrorText)
        {
            CloudStorageErrorResponse temp =
                JsonConvert.DeserializeObject <CloudStorageErrorResponse>(jsonErrorText);

            this.errorField = temp.error;
        }
コード例 #2
0
        /// <summary>
        /// Parses the JSON error text.
        /// </summary>
        /// <param name="jsonErrorText">The JSON error response from the cloud
        /// storage server.</param>
        private void ParseJsonError(string jsonErrorText)
        {
            CloudStorageErrorResponse temp = serializer.Deserialize <CloudStorageErrorResponse>(
                jsonErrorText);

            this.errorField = temp.error;
        }