本文整理匯總了VB.NET中System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.GetUrlsForUri方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET TcpServerChannel.GetUrlsForUri方法的具體用法?VB.NET TcpServerChannel.GetUrlsForUri怎麽用?VB.NET TcpServerChannel.GetUrlsForUri使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。
在下文中一共展示了TcpServerChannel.GetUrlsForUri方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: SampleClass
' 導入命名空間
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels.Tcp
Class SampleClass
Public Shared Sub Main()
' Create a remotable object.
Dim tcpChannel As New TcpServerChannel(8085)
Dim WKSTE As New WellKnownServiceTypeEntry(GetType(HelloService), "Service", WellKnownObjectMode.Singleton)
RemotingConfiguration.RegisterWellKnownServiceType(WKSTE)
RemotingConfiguration.ApplicationName = "HelloServer"
' Print out the urls for the HelloServer.
Dim urls As String() = tcpChannel.GetUrlsForUri("HelloServer")
Dim url As String
For Each url In urls
System.Console.WriteLine("{0}", url)
Next url
End Sub
End Class
開發者ID:VB.NET開發者,項目名稱:System.Runtime.Remoting.Channels.Tcp,代碼行數:26,代碼來源:TcpServerChannel.GetUrlsForUri