SPFeature.Parent property
取得表示功能的範圍的父物件。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property Parent As Object
Get
'用途
Dim instance As SPFeature
Dim value As Object
value = instance.Parent
public Object Parent { get; }
Property value
Type: System.Object
物件,表示該功能的範圍。如果範圍屬於SPFeatureScope.Web,傳回的值就會是 box 為型別Object的SPWeb物件。如果範圍屬於SPFeatureScope.Site,傳回的值就會是 box 為型別System.Object的SPSite物件。