Edit

Share via


MediaProvider.TryGetPortRange(String, Int32, Int32) Method

Definition

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.

Applies to