共用方式為


SPUserCustomAction.ImageUrl Property

Gets and sets the URL to an image that represents an icon for the custom action.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableConstraintAttribute(FixedId := "validUrl", Type := ClientCallableConstraintType.Custom,  _
    Value := "MUST be NULL or a server-relative URL or an absolute URL.")> _
<ClientCallablePropertyAttribute> _
Public Overridable Property ImageUrl As String
    Get
    Set
'Usage
Dim instance As SPUserCustomAction
Dim value As String

value = instance.ImageUrl

instance.ImageUrl = value
[ClientCallableConstraintAttribute(FixedId = "validUrl", Type = ClientCallableConstraintType.Custom, Value = "MUST be NULL or a server-relative URL or an absolute URL.")]
[ClientCallablePropertyAttribute]
public virtual string ImageUrl { get; set; }

Property Value

Type: System.String
A string that contains a relative path to an image.

See Also

Reference

SPUserCustomAction Class

SPUserCustomAction Members

Microsoft.SharePoint Namespace