MediaProvider.TryGetPortRange(String, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to get the port range defined for the media type.
protected:
bool TryGetPortRange(System::String ^ mediaType, [Runtime::InteropServices::Out] int % minPort, [Runtime::InteropServices::Out] int % maxPort);
protected bool TryGetPortRange (string mediaType, out int minPort, out int maxPort);
member this.TryGetPortRange : string * * -> bool
Protected Function TryGetPortRange (mediaType As String, ByRef minPort As Integer, ByRef maxPort As Integer) As Boolean
Parameters
- mediaType
- String
The media type for which port range is requested.
- minPort
- Int32
- maxPort
- Int32
Returns
Returns true if port range was found for the media type specified.