IWMSAdminNetworkDataSourcePlugin.ProxyUserName (Visual Basic .NET)
Previous | Next |
IWMSAdminNetworkDataSourcePlugin.ProxyUserName (Visual Basic .NET)
The ProxyUserName property retrieves a user name that can be sent to a proxy server in response to an authentication challenge.
Syntax
String = IWMSAdminNetworkDataSourcePlugin.ProxyUserName(bstrProtocol)
Parameters
bstrProtocol
[in] String containing the protocol. This must be HTTP or RTSP.
Property Value
A String containing the user 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 GetProxyUserName() ' 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 user name used to respond ' to authentication challenges. strName = AdminNetDataSrc.ProxyUserName("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.SetProxyCredentials (Visual Basic .NET)
Previous | Next |