IWMSPublishingPoint.IsDistributionPasswordSet (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSPublishingPoint.IsDistributionPasswordSet (Visual Basic .NET)
The IsDistributionPasswordSet property retrieves a Boolean value indicating whether the password used to authenticate server-to-server distribution is set.
Syntax
=
PublishingPoint
.IsDistributionPasswordSet
Property Value
A Boolean that indicates whether the password is set.
If this property fails, it returns an error number.
| Number | Description |
| 0xC00D145AL | The publishing point was already removed. |
Remarks
This property is read-only. Indicates whether the password used to authenticate server-to-server distribution is set. The default value is a zero-length string.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub IsPasswordSet()
' Declare variables.
Dim Server As WMSServer
Dim PubPoints As IWMSPublishingPoints
Dim PubPoint As IWMSPublishingPoint
Dim strText As String
Dim bVal As Boolean
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints
' Retrieve information about each publishing point.
For Each PubPoint In PubPoints
' Retrieve a Boolean value indicating whether
' a distribution password is set.
bVal = PubPoint.IsDistributionPasswordSet
Next
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
| Previous | Next |