﻿// Decompiled with JetBrains decompiler
// Type: System.Net.UploadStringCompletedEventArgs
// Assembly: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 5ABD58FD-DF31-44FD-A492-63F2B47CC9AF
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.dll

using System;
using System.ComponentModel;
using System.Runtime;

namespace System.Net
{
  /// <summary>
  /// Provides data for the <see cref="E:System.Net.WebClient.UploadStringCompleted"/> event.
  /// </summary>
  public class UploadStringCompletedEventArgs : AsyncCompletedEventArgs
  {
    private string m_Result;

    /// <summary>
    /// Gets the server reply to a string upload operation that is started by calling an <see cref="Overload:System.Net.WebClient.UploadStringAsync"/> method.
    /// </summary>
    /// 
    /// <returns>
    /// A <see cref="T:System.Byte"/> array that contains the server reply.
    /// </returns>
    /// <PermissionSet><IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence"/></PermissionSet>
    public string Result
    {
      get
      {
        this.RaiseExceptionIfNecessary();
        return this.m_Result;
      }
    }

    [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
    internal UploadStringCompletedEventArgs(string result, Exception exception, bool cancelled, object userToken)
      : base(exception, cancelled, userToken)
    {
      this.m_Result = result;
    }
  }
}
