예제 #1
0
 public virtual void Unregister(){
   NameValueCollection args = this.GetRegistrationScriptArguments();
   string script = this.GetRegistrationScript();
   PackageInstaller pi = new PackageInstaller();
   pi.Unregister(script, args); 
   if (this.CodeDomProvider != null) {
     pi.UnregisterCodeDomProvider(this.SourceFileExtension);
   }
 }
예제 #2
0
 public virtual void Register(){
   NameValueCollection args = this.GetRegistrationScriptArguments();
   string script = this.GetRegistrationScript();
   PackageInstaller pi = new PackageInstaller();
   pi.Register(script, args);
   if (this.CodeDomProvider != null) {
     pi.RegisterCodeDomProvider(this.CodeDomProvider, this.SourceFileExtension, this.ASPExtensionAliases, this.ASPWarningLevel);
   }
 }        
예제 #3
0
        public virtual void Unregister()
        {
            NameValueCollection args = this.GetRegistrationScriptArguments();
            string           script  = this.GetRegistrationScript();
            PackageInstaller pi      = new PackageInstaller();

            pi.Unregister(script, args);
            if (this.CodeDomProvider != null)
            {
                pi.UnregisterCodeDomProvider(this.SourceFileExtension);
            }
        }
예제 #4
0
        public virtual void Register()
        {
            NameValueCollection args = this.GetRegistrationScriptArguments();
            string           script  = this.GetRegistrationScript();
            PackageInstaller pi      = new PackageInstaller();

            pi.Register(script, args);
            if (this.CodeDomProvider != null)
            {
                pi.RegisterCodeDomProvider(this.CodeDomProvider, this.SourceFileExtension, this.ASPExtensionAliases, this.ASPWarningLevel);
            }
        }