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.
.gif)
| Previous | Next |
IWMSAdminMulticastSink.MulticastTtl (Visual Basic .NET)
The MulticastTtl property specifies and retrieves the maximum permitted number of intermediate router hops for the multicast transmission.
Syntax
IWMSAdminMulticastSink .MulticastTtl = Integer Integer = IWMSAdminMulticastSink.MulticastTtl
Property Value
Integer containing the time-to-live (TTL) value. This value cannot be less than zero or greater than 255.
If this property fails, it throws an exception.
| Number | Description |
| 0x80070057 | The parameter is less than zero or greater than 255. |
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub SetRouterHops()
' Declare variables.
Dim Server As WMSServer
Dim BCPubPoint As IWMSBroadcastPublishingPoint
Dim Plugin As IWMSPlugin
Dim AdminMulticastSink As IWMSAdminMulticastSink
Try
' Create the WMSServer object.
Server = New WMSServer()
' Add a new broadcast publishing point.
BCPubPoint = Server.PublishingPoints.Add("NewPubPoint", _
WMS_PUBLISHING_POINT_CATEGORY.WMS_PUBLISHING_POINT_BROADCAST, _
"Push:*")
' Retrieve the plug-in to be configured.
Plugin = BCPubPoint.BroadcastDataSinks.Item( _
"WMS Multicast Data Writer")
' Retrieve the custom interface of the plug-in.
AdminMulticastSink = Plugin.CustomInterface
' Set the maximum permitted number of intermediate
' router hops for the multicast broadcast.
AdminMulticastSink.MulticastTTL = 20
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, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008 Enterprise; Windows Server Datacenter.
See Also
| Previous | Next |