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


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

IsNestedFamANDAssem プロパティを使用する例を次に示します。
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 IsNestedFamANDAssem property of the nested class. Console.WriteLine(ControlChars.Cr + "The IsNestedFamANDAssem property value of the nested class is {0}.", myTypeB.IsNestedFamANDAssem.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 IsNestedFamANDAssem property of the nested class. Console.WriteLine("\nThe IsNestedFamANDAssem 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 IsNestedFamANDAssem property of the nested class. Console::WriteLine( "\nThe IsNestedFamANDAssem property value of the nested class is {0}.", myTypeB->IsNestedFamANDAssem ); }
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 IsNestedFamANDAssem property of the nested class. Console.WriteLine("\nThe IsNestedFamANDAssem property value of the" +" nested class is {0}.", System.Convert.ToString(myTypeB.get_IsNestedFamANDAssem())); } //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.IsNestedFamANDAssem プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

Type が入れ子になっていて、それ自体が属するファミリとアセンブリの両方に属しているクラスだけから参照可能な場合は true。それ以外の場合は false。

このプロパティは、アンマネージ コードからマネージ クラスにアクセスするためのプロパティであるため、マネージ コードからは呼び出さないでください。
Type.IsNestedFamANDAssem プロパティは、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.IsNestedFamANDAssemを検索する場合は、下記のリンクをクリックしてください。

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