共用方式為


WebPart.IAttributeAccessor.SetAttribute method

IAttributeAccessor.SetAttribute

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

Syntax

'宣告
Private Sub SetAttribute ( _
    key As String, _
    value As String _
) Implements IAttributeAccessor.SetAttribute
'用途
Dim instance As WebPart
Dim key As String
Dim value As String

CType(instance, IAttributeAccessor).SetAttribute(key, value)
void IAttributeAccessor.SetAttribute(
    string key,
    string value
)

參數

Implements

IAttributeAccessor.SetAttribute(String, String)

請參閱

參照

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace