_Type.IsNestedFamilyとは? わかりやすく解説

Type.IsNestedFamily プロパティ

Type入れ子になっていて、それ自体属すファミリ内でだけ参照可能かどうかを示す値を取得します

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim instance As Type
Dim value As Boolean

value = instance.IsNestedFamily
public bool IsNestedFamily { get;
 }
public:
virtual property bool IsNestedFamily {
    bool get () sealed;
}
/** @property */
public final boolean get_IsNestedFamily ()

プロパティ
Type入れ子になっていて、それ自体属すファミリ内でだけ参照可能な場合trueそれ以外場合false

解説解説
使用例使用例
' 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
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

_Type.IsNestedFamily プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

COM オブジェクトに、Type.IsNestedFamily プロパティへのバージョン依存しないアクセス用意されています。

このプロパティは、CLS準拠していません。  

名前空間: System.Runtime.InteropServices
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim instance As _Type
Dim value As Boolean

value = instance.IsNestedFamily
bool IsNestedFamily { get; }
property bool IsNestedFamily {
    bool get ();
}
/** @property */
boolean get_IsNestedFamily ()
function get IsNestedFamily () : boolean

プロパティ
Type入れ子になっていて、それ自体属すファミリ内でだけ参照可能な場合trueそれ以外場合false

解説解説

このプロパティは、アンマネージ コードからマネージ クラスアクセスするためのプロパティであるため、マネージ コードからは呼び出さないください

Type.IsNestedFamily プロパティは、Type入れ子になっていて、それ自体属すファミリ内でだけ参照可能かどうかを示す値を取得します

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」から_Type.IsNestedFamilyを検索した結果を表示しています。
Weblioに収録されているすべての辞書から_Type.IsNestedFamilyを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書から_Type.IsNestedFamilyを検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「_Type.IsNestedFamily」の関連用語

_Type.IsNestedFamilyのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



_Type.IsNestedFamilyのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS