共用方式為


WebPart.ClientName property

取得網頁組件中所使用的用戶端的網頁組件頁面服務元件 (WPSC) 的唯一名稱。

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

Syntax

'宣告
Public ReadOnly Property ClientName As String
    Get
'用途
Dim instance As WebPart
Dim value As String

value = instance.ClientName
public string ClientName { get; }

Property value

Type: System.String
指定網頁組件的唯一識別碼string 。

備註

只有在執行階段有ClientName屬性。

請參閱

參照

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace