共用方式為


SPWeb.Author property

取得或設定一個代表建立網站的使用者的使用者物件。(唯讀在沙箱化解決方案中。)

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

Syntax

'宣告
Public Property Author As SPUser
    Get
    Set
'用途
Dim instance As SPWeb
Dim value As SPUser

value = instance.Author

instance.Author = value
public SPUser Author { get; set; }

Property value

Type: Microsoft.SharePoint.SPUser
SPUser 物件,表示建立網站的使用者。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace