vb System.Runtime.Remoting.RemotingConfiguration.IsRemotelyActivatedClientType类(方法)实例源码

下面列出了vb System.Runtime.Remoting.RemotingConfiguration.IsRemotelyActivatedClientType 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Runtime.Remotin   
Dim myAssembly As [Assembly] = [Assembly].GetAssembly(GetType(MyServerImpl))
     Dim myName As AssemblyName = myAssembly.GetName()
     ' Check whether the 'MyServerImpl' type is registered as
     ' a remotely activated client type.
     Dim myActivatedClientEntry As ActivatedClientTypeEntry = _
             RemotingConfiguration.IsRemotelyActivatedClientType(GetType(MyServerImpl).FullName, _
             myName.Name)
     Console.WriteLine("The Object type : " + myActivatedClientEntry.ObjectType.ToString())
     Console.WriteLine("The Application Url : " + myActivatedClientEntry.ApplicationUrl)
     if myActivatedClientEntry is nothing then
   Console.WriteLine("The object is not client activated")
else
       Console.WriteLine("The object is client activated")
end if

作者:VB.NET开发    项目:System.Runtime.Remotin   
' Check whether the 'MyServerImpl' type is registered as a remotely activated client type.
Dim myActivatedClientEntry As ActivatedClientTypeEntry = _ 
               RemotingConfiguration.IsRemotelyActivatedClientType(GetType(MyServerImpl))
Console.WriteLine("The Object type is " + myActivatedClientEntry.ObjectType.ToString())
Console.WriteLine("The Application Url is " + _ 
                                 myActivatedClientEntry.ApplicationUrl.ToString())


问题


面经


文章

微信
公众号

扫码关注公众号