System.Runtime.Remoting.RemotingConfiguration.IsRemotelyActivatedClientType C# (CSharp) Méthode

IsRemotelyActivatedClientType() private méthode

private IsRemotelyActivatedClientType ( String typeName, String assemblyName ) : ActivatedClientTypeEntry
typeName String
assemblyName String
Résultat ActivatedClientTypeEntry
        public static ActivatedClientTypeEntry IsRemotelyActivatedClientType(String typeName, String assemblyName)
        {
            return RemotingConfigHandler.IsRemotelyActivatedClientType(typeName, assemblyName);
        }

Same methods

RemotingConfiguration::IsRemotelyActivatedClientType ( Type svrType ) : ActivatedClientTypeEntry

Usage Example

Exemple #1
0
 /// <summary>Checks whether the object specified by its type name and assembly name is registered as a remotely activated client type.</summary>
 /// <returns>The <see cref="T:System.Runtime.Remoting.ActivatedClientTypeEntry" /> that corresponds to the specified object type.</returns>
 /// <param name="typeName">The type name of the object to check. </param>
 /// <param name="assemblyName">The assembly name of the object to check. </param>
 /// <exception cref="T:System.Security.SecurityException">At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. </exception>
 /// <PermissionSet>
 ///   <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="RemotingConfiguration" />
 /// </PermissionSet>
 public static ActivatedClientTypeEntry IsRemotelyActivatedClientType(string typeName, string assemblyName)
 {
     return(RemotingConfiguration.IsRemotelyActivatedClientType(Assembly.Load(assemblyName).GetType(typeName)));
 }