Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetDistributionUserNamePassword method specifies the password and user name to use in response to an authentication challenge sent during server-to-server distribution.
IWMSPublishingPoint.SetDistributionUserNamePassword(
string sUserName
string sPassword
);
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
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.
Return Value
This method does not return a value.
See Also
Reference
IWMSPublishingPoint Object (Visual Basic .NET)
IWMSPublishingPoint.DistributionUserName (Visual Basic .NET)