SPFeature.Parent property

Gets the parent object that represents the scope of the Feature.

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

public Object Parent { get; }

Property value

Type: System.Object
An object that represents the scope of the Feature. If the scope is SPFeatureScope.Web, then the return value is an SPWeb object boxed as type Object. If the scope is SPFeatureScope.Site, then the return value is an SPSite object boxed as type System.Object.
Show: