IWMSPublishingPoint.SetDistributionUserNamePassword (Visual Basic .NET)
Previous | Next |
IWMSPublishingPoint.SetDistributionUserNamePassword (Visual Basic .NET)
The SetDistributionUserNamePassword method specifies the password and user name to use in response to an authentication challenge sent during server-to-server distribution.
Syntax
IWMSPublishingPoint .SetDistributionUserNamePassword( string sUserName string sPassword );
Return Value
This method does not return a value.
Remarks
You can use a password and name to retrieve content from a publishing point on a remote server that has authentication and authorization plug-ins enabled.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub SetNamePassword() ' Declare Variables Dim Server As WMSServer Dim PubPoint As IWMSPublishingPoint Try ' Create the WMSServer object. Server = CreateObject("WMSServer.Server") ' Retrieve the sample broadcast publishing point. PubPoint = Server.PublishingPoints.Item("Sample_Broadcast") ' Specify a user name and password. PubPoint.SetDistributionUserNamePassword("User", "Password") Catch excCom As COMException ' TODO: Handle COM exceptions. Catch e As Exception ' TODO: Handle error. 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
- IWMSPublishingPoint Object (Visual Basic .NET)
- IWMSPublishingPoint.DistributionUserName (Visual Basic .NET)
Previous | Next |