Aracılığıyla paylaş


IInheritanceService.GetInheritanceAttribute(IComponent) Yöntem

Tanım

Belirtilen bileşen için devralma özniteliğini alır.

public:
 System::ComponentModel::InheritanceAttribute ^ GetInheritanceAttribute(System::ComponentModel::IComponent ^ component);
public System.ComponentModel.InheritanceAttribute GetInheritanceAttribute (System.ComponentModel.IComponent component);
abstract member GetInheritanceAttribute : System.ComponentModel.IComponent -> System.ComponentModel.InheritanceAttribute
Public Function GetInheritanceAttribute (component As IComponent) As InheritanceAttribute

Parametreler

component
IComponent

IComponent Devralma özniteliğinin alındığı.

Döndürülenler

Belirtilen bileşenin devralma düzeyini açıklayan bir örneği InheritanceAttribute .

Açıklamalar

Bileşenin profili yöntemiyle AddInheritedComponents oluşturulduysa, bu yöntem değerini InheritanceAttribute.NotInheriteddöndürür. Aksi takdirde, bu bileşenin devralma özniteliğini döndürür.

Belirtilen bileşenin devralma düzeyini yansıtan bir elde InheritanceAttribute etmeye çalışmadan önce belirtilen bileşeni veya belirtilen bileşenin üst öğesini çağırmalısınızAddInheritedComponents.

Şunlara uygulanır

Ayrıca bkz.