AmbientValueAttribute

AmbientValueAttribute

System.ComponentModel (system.dll) sealed class

If a control defines a property that can take an ambient value from its host, it must be decorated with this attribute. The designer will use this attribute to determine whether to persist the control's current value, or whether to leave it to the ambient environment. You can retrieve the Value for the object that represents "use the ambient value."

 public sealed class  AmbientValueAttribute  : Attribute {  // Public Constructors  public  AmbientValueAttribute  (bool  value  );    public  AmbientValueAttribute  (byte  value  );    public  AmbientValueAttribute  (char  value  );    public  AmbientValueAttribute  (double  value  );    public  AmbientValueAttribute  (short  value  );    public  AmbientValueAttribute  (int  value  );    public  AmbientValueAttribute  (long  value  );    public  AmbientValueAttribute  (object  value  );    public  AmbientValueAttribute  (float  value  );    public  AmbientValueAttribute  (string  value  );    public  AmbientValueAttribute  (Type  type  , string  value  );  // Public Instance Properties  public object  Value  {get; }  // Public Instance Methods  public override bool  Equals  (object  obj  );  // overrides Attribute  public override int  GetHashCode  ();  // overrides Attribute  } 

Hierarchy

System.Object System.Attribute AmbientValueAttribute

Valid On

All



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net