IWMSAdminNetworkDataSourcePlugin.ProxyHostName (Visual Basic .NET)
Previous | Next |
IWMSAdminNetworkDataSourcePlugin.ProxyHostName (Visual Basic .NET)
The ProxyHostName property retrieves the name of the proxy server.
Syntax
String = IWMSAdminNetworkDataSourcePlugin.ProxyHostName(bstrProtocol)
Parameters
bstrProtocol
[in] String containing the protocol. This must be HTTP or RTSP.
Property Value
A String containing the proxy host name.
If this property fails, it throws an exception.
Number | Description |
0xC00D002B | The bstrProtocol parameter must be HTTP or RTSP. |
Remarks
This property is read-only.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetHostName() ' Declare variables. Dim Server As WMSServer Dim Plugin As IWMSPlugin Dim AdminNetDataSrc As IWMSAdminNetworkDataSourcePlugin Dim strName As String Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve the plug-in to be configured. Plugin = Server.DataSources.Item("WMS Network Data Source") ' Retrieve the custom interface of the plug-in. AdminNetDataSrc = Plugin.CustomInterface ' Retrieve the proxy host name associated ' with the RTSP protocol. strName = AdminNetDataSrc.ProxyHostName("RTSP") Catch excCom As COMException ' TODO: Handle COM exceptions. Catch exc As Exception ' TODO: Handle errors. Finally ' TODO: Clean-up code goes here. End Try End Sub
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
- IWMSAdminNetworkDataSourcePlugin Object (Visual Basic .NET)
- IWMSAdminNetworkDataSourcePlugin.SetProxyHostName (Visual Basic .NET)
Previous | Next |