IWMSAdminNetworkDataSourcePlugin.ProxyPassword (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSAdminNetworkDataSourcePlugin.ProxyPassword (Visual Basic .NET)
The ProxyPassword property retrieves a Boolean value indicating whether a proxy password has been set for a particular protocol.
Syntax
Boolean = AdminNetworkDataSourcePlugin.ProxyPassword(bstrProtocol)
Parameters
bstrProtocol
[in] String containing the protocol. This must be HTTP or RTSP.
Property Value
A Boolean indicating whether a proxy password has been set.
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 GetPassword()
' Declare variables.
Dim Server As WMSServer
Dim Plugin As IWMSPlugin
Dim AdminNetDataSrc As IWMSAdminNetworkDataSourcePlugin
Dim bSet As Boolean
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 password used to respond
' to authentication challenges.
bSet = AdminNetDataSrc.ProxyPassword("HTML")
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 |