Share via


WebPart.System.Web.UI.IAttributeAccessor.SetAttribute Method

Designates an attribute and its value to assign to the Web Part.

Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)

Syntax

Parameters

  • key
    A String that contains the name of the Web Part attribute.
  • value
    A String containing the value of the specified attribute.

See Also

Reference

WebPart Class
WebPart Members
Microsoft.SharePoint.WebPartPages Namespace