Share via


SPGroup.Owner property

Gets or sets the owner for the group, which can be a user or another group.

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

Syntax

'Declaration
Public Property Owner As SPMember
    Get
    Set
'Usage
Dim instance As SPGroup
Dim value As SPMember

value = instance.Owner

instance.Owner = value
public SPMember Owner { get; set; }

Property value

Type: Microsoft.SharePoint.SPMember
An SPMember object that represents the owner.

See also

Reference

SPGroup class

SPGroup members

Microsoft.SharePoint namespace