Imported Upstream version 5.0.0.42

Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-04-10 11:41:01 +00:00
parent 1190d13a04
commit 6bdd276d05
19939 changed files with 3099680 additions and 93811 deletions

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
netcoreapp;
uap;
</BuildConfigurations>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,98 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ------------------------------------------------------------------------------
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System.Net.NetworkInformation
{
public enum IPStatus
{
BadDestination = 11018,
BadHeader = 11042,
BadOption = 11007,
BadRoute = 11012,
DestinationHostUnreachable = 11003,
DestinationNetworkUnreachable = 11002,
DestinationPortUnreachable = 11005,
DestinationProhibited = 11004,
DestinationProtocolUnreachable = 11004,
DestinationScopeMismatch = 11045,
DestinationUnreachable = 11040,
HardwareError = 11008,
IcmpError = 11044,
NoResources = 11006,
PacketTooBig = 11009,
ParameterProblem = 11015,
SourceQuench = 11016,
Success = 0,
TimedOut = 11010,
TimeExceeded = 11041,
TtlExpired = 11013,
TtlReassemblyTimeExceeded = 11014,
Unknown = -1,
UnrecognizedNextHeader = 11043,
}
public partial class Ping : System.ComponentModel.Component
{
public Ping() { }
public event System.Net.NetworkInformation.PingCompletedEventHandler PingCompleted { add { } remove { } }
protected override void Dispose(bool disposing) { }
protected void OnPingCompleted(System.Net.NetworkInformation.PingCompletedEventArgs e) { }
public PingReply Send(string hostNameOrAddress) { throw null; }
public PingReply Send(string hostNameOrAddress, int timeout) { throw null; }
public PingReply Send(System.Net.IPAddress address) { throw null; }
public PingReply Send(System.Net.IPAddress address, int timeout) { throw null; }
public PingReply Send(string hostNameOrAddress, int timeout, byte[] buffer) { throw null; }
public PingReply Send(System.Net.IPAddress address, int timeout, byte[] buffer) { throw null; }
public PingReply Send(string hostNameOrAddress, int timeout, byte[] buffer, System.Net.NetworkInformation.PingOptions options) { throw null; }
public PingReply Send(System.Net.IPAddress address, int timeout, byte[] buffer, System.Net.NetworkInformation.PingOptions options) { throw null; }
public void SendAsync(string hostNameOrAddress, object userToken) { }
public void SendAsync(string hostNameOrAddress, int timeout, object userToken) { }
public void SendAsync(System.Net.IPAddress address, object userToken) { }
public void SendAsync(System.Net.IPAddress address, int timeout, object userToken) { }
public void SendAsync(string hostNameOrAddress, int timeout, byte[] buffer, object userToken) { }
public void SendAsync(System.Net.IPAddress address, int timeout, byte[] buffer, object userToken) { }
public void SendAsync(string hostNameOrAddress, int timeout, byte[] buffer, System.Net.NetworkInformation.PingOptions options, object userToken) { }
public void SendAsync(System.Net.IPAddress address, int timeout, byte[] buffer, System.Net.NetworkInformation.PingOptions options, object userToken) { }
public void SendAsyncCancel() { }
public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(System.Net.IPAddress address) { throw null; }
public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(System.Net.IPAddress address, int timeout) { throw null; }
public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(System.Net.IPAddress address, int timeout, byte[] buffer) { throw null; }
public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(System.Net.IPAddress address, int timeout, byte[] buffer, System.Net.NetworkInformation.PingOptions options) { throw null; }
public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(string hostNameOrAddress) { throw null; }
public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(string hostNameOrAddress, int timeout) { throw null; }
public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(string hostNameOrAddress, int timeout, byte[] buffer) { throw null; }
public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(string hostNameOrAddress, int timeout, byte[] buffer, System.Net.NetworkInformation.PingOptions options) { throw null; }
}
public delegate void PingCompletedEventHandler(object sender, PingCompletedEventArgs e);
public class PingCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{
internal PingCompletedEventArgs() : base(null, false, null) { }
public PingReply Reply { get; }
}
public partial class PingException : System.InvalidOperationException
{
public PingException(string message) { }
public PingException(string message, System.Exception innerException) { }
protected PingException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) { }
}
public partial class PingOptions
{
public PingOptions() { }
public PingOptions(int ttl, bool dontFragment) { }
public bool DontFragment { get { throw null; } set { } }
public int Ttl { get { throw null; } set { } }
}
public partial class PingReply
{
internal PingReply() { }
public System.Net.IPAddress Address { get { throw null; } }
public byte[] Buffer { get { throw null; } }
public System.Net.NetworkInformation.PingOptions Options { get { throw null; } }
public long RoundtripTime { get { throw null; } }
public System.Net.NetworkInformation.IPStatus Status { get { throw null; } }
}
}

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Release|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Release|AnyCPU'" />
<ItemGroup>
<Compile Include="System.Net.Ping.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\System.ComponentModel.EventBasedAsync\ref\System.ComponentModel.EventBasedAsync.csproj" />
<ProjectReference Include="..\..\System.ComponentModel.Primitives\ref\System.ComponentModel.Primitives.csproj" />
<ProjectReference Include="..\..\System.Net.Primitives\ref\System.Net.Primitives.csproj" />
<ProjectReference Include="..\..\System.Runtime\ref\System.Runtime.csproj" />
<ProjectReference Include="..\..\System.Threading.Tasks\ref\System.Threading.Tasks.csproj" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>