UserControl.IAttributeAccessor.SetAttribute(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the value of the specified user control attribute.
virtual void System.Web.UI.IAttributeAccessor.SetAttribute(System::String ^ name, System::String ^ value) = System::Web::UI::IAttributeAccessor::SetAttribute;
void IAttributeAccessor.SetAttribute (string name, string value);
abstract member System.Web.UI.IAttributeAccessor.SetAttribute : string * string -> unit
override this.System.Web.UI.IAttributeAccessor.SetAttribute : string * string -> unit
Sub SetAttribute (name As String, value As String) Implements IAttributeAccessor.SetAttribute
Parameters
- name
- String
The name of the attribute to set.
- value
- String
The value of the attribute to set.
Implements
Remarks
Use the IAttributeAccessor.SetAttribute method to set the value of control attributes that are not exposed as properties on the control.
Applies to
See also
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.