共用方式為


SPFarm.GetPersistedFeatureDefinition method

Include protected members
Include inherited members

會傳回**[T:HYPERLINK"https://msdn2.microsoft.com/EN-US/library/ms472446"\t"_blank"Microsoft.SharePoint.Administration.SPFeatureDefinition]**物件。

Overload list

  Name Description
Public method GetPersistedFeatureDefinition(Guid, Int32) 會傳回[T:HYPERLINK"https://msdn2.microsoft.com/EN-US/library/ms472446"\t"_blank"Microsoft.SharePoint.Administration.SPFeatureDefinition]物件指定的相容性層級根據featureId參數值。如果指定的compatibilityLevel的找不到[T:HYPERLINK"https://msdn2.microsoft.com/EN-US/library/ms472446"\t"_blank"Microsoft.SharePoint.Administration.SPFeatureDefinition]物件,則會傳回a null reference (Nothing in Visual Basic) 。
Public method GetPersistedFeatureDefinition(Guid, Int32, Boolean) 會傳回指定的compatibilityLevel和featureId值[T:HYPERLINK"https://msdn2.microsoft.com/EN-US/library/ms472446"\t"_blank"Microsoft.SharePoint.Administration.SPFeatureDefinition]物件。如果fallback參數值為true而指定的compatibilityLevel和featureId值找不到相符項目,此方法將嘗試傳回[T:HYPERLINK"https://msdn2.microsoft.com/EN-US/library/ms472446"\t"_blank"Microsoft.SharePoint.Administration.SPFeatureDefinition]物件具有較低的compatibilityLevel值。如果使用找不到相對應的[T:HYPERLINK"https://msdn2.microsoft.com/EN-US/library/ms472446"\t"_blank"Microsoft.SharePoint.Administration.SPFeatureDefinition]物件使用指定的compatibilityLevel或較早的 (後援) 指定的featureId組建版本,傳回a null reference (Nothing in Visual Basic) 。

Top

請參閱

參照

SPFarm class

SPFarm members

Microsoft.SharePoint.Administration namespace