Type.IsNestedFamily プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)


現在の Type がジェネリック型の型パラメータを表している場合、このプロパティは常に false を返します。
TypeAttributes.VisibilityMask は、参照可能範囲属性を選択します。
Type オブジェクトのファミリは、まったく同じ Type とその内部処理形式のすべてのオブジェクトとして定義されています。

' Enclose a class. Class MyClassA ' Protected nested class. Protected Class MyClassB End Class 'MyClassB End Class 'MyClassA Class MyTestClass Inherits MyClassA Public Shared Sub Main() ' Get the Type of the nested class. Dim myTypeB As Type = GetType(MyClassA.MyClassB) ' Get the 'IsNestedFamily' property the of the nested class ' 'Type'. Console.WriteLine((ControlChars.Cr + "The nested class has the property 'IsNestedFamily' value: " + myTypeB.IsNestedFamily.ToString())) End Sub 'Main End Class 'MyTestClass
// Enclose a class. class MyClassA { // Protected nested class. protected class MyClassB { } } class MyTestClass : MyClassA { public static void Main(string[] args) { // Get the Type of the nested class. Type myTypeB = typeof(MyClassA.MyClassB); // Get the 'IsNestedFamily' property the of the nested class // 'Type'. Console.WriteLine("\nThe nested class has the property 'IsNestedFamily' value: "+ myTypeB.IsNestedFamily.ToString()); } }
// Enclose a class. ref class MyClassA { protected: // Protected nested class. ref class MyClassB{}; }; ref class MyTestClass: public MyClassA { public: static void Test() { // Get the Type of the nested class. Type^ myTypeB = MyClassA::MyClassB::typeid; // Get the 'IsNestedFamily' property the of the nested class // 'Type'. Console::WriteLine( "\nThe nested class has the property 'IsNestedFamily' value: {0}", myTypeB->IsNestedFamily ); } }; int main() { MyTestClass::Test(); }
// Enclose a class. class MyClassA { // Protected nested class. protected class MyClassB { } //MyClassB } //MyClassA class MyTestClass extends MyClassA { public static void main(String[] args) { // Get the Type of the nested class. Type myTypeB = MyClassA.MyClassB.class.ToType(); // Get the 'IsNestedFamily' property the of the nested class 'Type'. Console.WriteLine("\nThe nested class has the property " +"'IsNestedFamily' value: " + System.Convert.ToString(myTypeB.get_IsNestedFamily())); } //main } //MyTestClass

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


_Type.IsNestedFamily プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

Type が入れ子になっていて、それ自体が属するファミリ内でだけ参照可能な場合は true。それ以外の場合は false。

このプロパティは、アンマネージ コードからマネージ クラスにアクセスするためのプロパティであるため、マネージ コードからは呼び出さないでください。
Type.IsNestedFamily プロパティは、Type が入れ子になっていて、それ自体が属するファミリ内でだけ参照可能かどうかを示す値を取得します。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からType.IsNestedFamilyを検索する場合は、下記のリンクをクリックしてください。

- Type.IsNestedFamilyのページへのリンク