共用方式為


UserCustomAction.ScriptSrc Property

Gets or sets a value that specifies the URI of a file which contains the ECMAScript to execute on the page

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property ScriptSrc As String
    Get
    Set
'Usage
Dim instance As UserCustomAction
Dim value As String

value = instance.ScriptSrc

instance.ScriptSrc = value
[RemoteAttribute]
public string ScriptSrc { get; set; }

Property Value

Type: System.String
Returns a String instance representing the execution on the page.

Remarks

It must be a null reference (Nothing in Visual Basic), or a server-relative URL.

. It must be a null reference (Nothing in Visual Basic) if Location is not “ScriptLink”.” This Standard defines the ECMAScript scripting language

See Also

Reference

UserCustomAction Class

UserCustomAction Members

Microsoft.SharePoint.Client Namespace