Type.IsNestedFamORAssemとは? わかりやすく解説

Type.IsNestedFamORAssem プロパティ

Type入れ子になっていて、それ自体属すファミリまたはアセンブリいずれかに属しているクラスだけから参照可能かどうかを示す値を取得します

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

Dim instance As Type
Dim value As Boolean

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

プロパティ
Type入れ子になっていて、それ自体属すファミリまたはアセンブリいずれかに属しているクラスだけから参照可能な場合trueそれ以外場合false

解説解説
使用例使用例

自身ファミリ内かアセンブリ内で参照できる入れ子になったクラス宣言し、その入れ子になったクラスIsNestedFamORAssem プロパティ値を表示する例を次に示します

Imports System
Imports Microsoft.VisualBasic
' Enclose a class.
Class MyClassA
    ' Protected friend nested class.
    Protected Friend Class
 MyClassB
    End Class 'MyClassB
End Class 'MyClassA
Class MyTestClass
    Public Shared Sub Main()
        ' Get the type of the nested class.
        Dim myTypeB As Type = GetType(MyClassA.MyClassB)
        ' Get the IsNestedFamORAssem property of the nested class.
        Console.WriteLine(ControlChars.Cr + "The IsNestedFamORAssem
 property value of the nested class is {0}.", myTypeB.IsNestedFamORAssem.ToString())
    End Sub 'Main
End Class 'MyTestClass
using System;
// Enclose a class.
class MyClassA
{
    protected internal class MyClassB
    {
    }
}
class MyTestClass 
{
    public static void Main(string[]
 args)
    {        
        // Get the type of the nested class.
        Type myTypeB = typeof(MyClassA.MyClassB);
        // Get the IsNestedFamORAssem property of the nested class.
        Console.WriteLine("\nThe IsNestedFamORAssem property value of the nested
 class is {0}.", myTypeB.IsNestedFamANDAssem.ToString());
 
    }
}
using namespace System;

// Enclose a class.
ref class MyClassA
{
public protected:
   ref class MyClassB{};
};

int main()
{
   // Get the type of the nested class.
   Type^ myTypeB = MyClassA::MyClassB::typeid;
   
   // Get the IsNestedFamORAssem property of the nested class.
   Console::WriteLine( "\nThe IsNestedFamORAssem property value of the nested
 class is {0}.", myTypeB->IsNestedFamORAssem );
}
import System.*;

// Enclose a class.
class MyClassA
{
    protected class MyClassB
    {
    } //MyClassB
} //MyClassA

class MyTestClass
{
    public static void main(String[]
 args)
    {
        // Get the type of the nested class.
        Type myTypeB = MyClassA.MyClassB.class.ToType();

        // Get the IsNestedFamORAssem property of the nested class.
        Console.WriteLine("\nThe IsNestedFamORAssem property value of the"
            + " nested class is {0}.",
            System.Convert.ToString(myTypeB.get_IsNestedFamANDAssem()));
    } //main
} //MyTestClass
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

_Type.IsNestedFamORAssem プロパティ

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

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

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

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

ReadOnly Property IsNestedFamORAssem As
 Boolean
Dim instance As _Type
Dim value As Boolean

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

プロパティ
Type入れ子になっていて、それ自体属すファミリまたはアセンブリいずれかに属しているクラスだけから参照可能な場合trueそれ以外場合false

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



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

辞書ショートカット

すべての辞書の索引

「Type.IsNestedFamORAssem」の関連用語

Type.IsNestedFamORAssemのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS