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


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

自身のファミリ内かアセンブリ内で参照できる入れ子になったクラスを宣言し、その入れ子になったクラスの 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

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.IsNestedFamORAssem プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

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

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

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