Пример #1
0
 public FormatViewDefinition(string name, PSControl control)
 {
     if (string.IsNullOrEmpty(name))
     {
         throw PSTraceSource.NewArgumentNullException("name");
     }
     if (control == null)
     {
         throw PSTraceSource.NewArgumentNullException("control");
     }
     this._name    = name;
     this._control = control;
 }
Пример #2
0
 public FormatViewDefinition(string name, PSControl control)
 {
     if (string.IsNullOrEmpty(name))
     {
         throw PSTraceSource.NewArgumentNullException("name");
     }
     if (control == null)
     {
         throw PSTraceSource.NewArgumentNullException("control");
     }
     this._name = name;
     this._control = control;
 }
        /// <summary/>
        public FormatViewDefinition(string name, PSControl control)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw PSTraceSource.NewArgumentNullException(nameof(name));
            }
            if (control == null)
            {
                throw PSTraceSource.NewArgumentNullException(nameof(control));
            }

            Name       = name;
            Control    = control;
            InstanceId = Guid.NewGuid();
        }
 internal FormatViewDefinition(string name, PSControl control, Guid instanceid)
 {
     Name       = name;
     Control    = control;
     InstanceId = instanceid;
 }
Пример #5
0
 internal FormatViewDefinition(string name, PSControl control, Guid instanceid)
 {
     this._name       = name;
     this._control    = control;
     this._instanceId = instanceid;
 }
Пример #6
0
 internal FormatViewDefinition(string name, PSControl control, Guid instanceid)
 {
     this._name = name;
     this._control = control;
     this._instanceId = instanceid;
 }