VCFileCodeModel.Parent プロパティ

指定したオブジェクトの直接の親オブジェクトを取得します。

名前空間 :  Microsoft.VisualStudio.VCCodeModel
アセンブリ :  Microsoft.VisualStudio.VCCodeModel (Microsoft.VisualStudio.VCCodeModel.dll 内)

構文

'宣言
ReadOnly Property Parent As ProjectItem
'使用
Dim instance As VCFileCodeModel
Dim value As ProjectItem

value = instance.Parent
ProjectItem Parent { get; }
property ProjectItem^ Parent {
    ProjectItem^ get ();
}
function get Parent () : ProjectItem

プロパティ値

型 : EnvDTE.ProjectItem

ProjectItem オブジェクト。

実装

FileCodeModel2.Parent

解説

Parent プロパティは、オブジェクトまたはコレクションの直接の親を返します。

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

概念

方法 : オートメーション オブジェクト モデルのコード例をコンパイルおよび実行する

参照

VCFileCodeModel インターフェイス

VCFileCodeModel メンバ

Microsoft.VisualStudio.VCCodeModel 名前空間