_MethodBase.IsFamilyOrAssembly 属性

定义

为 COM 对象提供对 IsFamilyOrAssembly 属性的与版本无关的访问。Provides COM objects with version-independent access to the IsFamilyOrAssembly property.

public:
 property bool IsFamilyOrAssembly { bool get(); };
public bool IsFamilyOrAssembly { get; }
member this.IsFamilyOrAssembly : bool
Public ReadOnly Property IsFamilyOrAssembly As Boolean

属性值

如果对此方法的访问只限于该类本身的成员、派生类的成员(与它们的位置无关)以及同一程序集中其他类的成员,则为 true;否则为 falsetrue if access to this method is restricted to members of the class itself, members of derived classes wherever they are, and members of other classes in the same assembly; otherwise, false.

注解

此属性用于从非托管代码访问托管类,不应从托管代码调用。This property is for access to managed classes from unmanaged code and should not be called from managed code.

IsFamilyOrAssembly属性获取一个值,该值指示此方法是否可由派生类调用,无论它们在何处,都可以由同一程序集中的所有类调用。The IsFamilyOrAssembly property gets a value indicating whether this method can be called by derived classes, wherever they are, and by all classes in the same assembly.

适用于