locked
Windows.Networking.EndpointPair constructor parameters RRS feed

  • Question

  • Hello,

    I want to create a new EndpointPair object:

    // hostname is a string
    // port is an integer
    
    var endpointPair = new Windows.Networking.EndpointPair(null, null, hostname, port);

    But I always get this error:

    0x800a000d - JavaScript runtime error: Type mismatch

    I've already tried the following:

    • converting port to a string
    • passing "" instead of null for the first two Parameters. (null should be okay if the documentation here, under the section Remarks, is right)
    • passing no Parameters, but that ends up in an "too few parameters" error message

    Above all, the documentation about the constructor has been removed: http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.endpointpair.endpointpair.aspx

    Thanks in advance!

    Monday, September 3, 2012 12:25 PM

Answers