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

IsWellKnownClientType() private méthode

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

Same methods

RemotingConfiguration::IsWellKnownClientType ( Type svrType ) : WellKnownClientTypeEntry

Usage Example

Exemple #1
0
 /// <summary>Checks whether the object specified by its type name and assembly name is registered as a well-known client type.</summary>
 /// <returns>The <see cref="T:System.Runtime.Remoting.WellKnownClientTypeEntry" /> 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 WellKnownClientTypeEntry IsWellKnownClientType(string typeName, string assemblyName)
 {
     return(RemotingConfiguration.IsWellKnownClientType(Assembly.Load(assemblyName).GetType(typeName)));
 }