System.Runtime.Remoting.SoapServices.PreLoad C# (CSharp) Méthode

PreLoad() public static méthode

public static PreLoad ( Assembly assembly ) : void
assembly System.Reflection.Assembly
Résultat void
        public static void PreLoad(Assembly assembly)
        {
            Type[] types = assembly.GetTypes();
            foreach (Type type in types)
            {
                PreLoad(type);
            }
        } // PreLoad       
                                                             

Same methods

SoapServices::PreLoad ( Type type ) : void

Usage Example

Exemple #1
0
 /// <summary>Preloads every <see cref="T:System.Type" /> found in the specified <see cref="T:System.Reflection.Assembly" /> from the information found in the <see cref="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" /> associated with each type.</summary>
 /// <param name="assembly">The <see cref="T:System.Reflection.Assembly" /> for each type of which to call <see cref="M:System.Runtime.Remoting.SoapServices.PreLoad(System.Type)" />. </param>
 /// <exception cref="T:System.Security.SecurityException">The immediate caller does not have infrastructure permission. </exception>
 /// <PermissionSet>
 ///   <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
 /// </PermissionSet>
 public static void PreLoad(Assembly assembly)
 {
     foreach (Type type in assembly.GetTypes())
     {
         SoapServices.PreLoad(type);
     }
 }
All Usage Examples Of System.Runtime.Remoting.SoapServices::PreLoad