Microsoft.JScript.VsaStaticCode.SetOption C# (CSharp) Method

SetOption() public method

public SetOption ( String name, Object value ) : void
name String
value Object
return void
      public override void SetOption(String name, Object value){
        if (this.engine == null)
          throw new VsaException(VsaError.EngineClosed);
        if (0 == String.Compare(name, "codebase", StringComparison.OrdinalIgnoreCase)){
          this.codebase = (string)value;
          this.codeContext.document.documentName = this.codebase;
        }else
          throw new VsaException(VsaError.OptionNotSupported);
        this.isDirty = true;
        this.engine.IsDirty = true;
      }