Share via


SPSiteAdministration.OwnerLoginName property

Gets or sets a value containing the user name of the site owner.

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

Syntax

'Declaration
Public Property OwnerLoginName As String
    Get
    Set
'Usage
Dim instance As SPSiteAdministration
Dim value As String

value = instance.OwnerLoginName

instance.OwnerLoginName = value
public string OwnerLoginName { get; set; }

Property value

Type: System.String
A string containing the Login name of the site collection owner. This string cannot be empty.

Remarks

Setting this property overwrites any existing owner, and grants owner status to this user.

See also

Reference

SPSiteAdministration class

SPSiteAdministration members

Microsoft.SharePoint.Administration namespace