OAReferenceBase<RefType>.SourceProject Property

Gets the project object if this reference is a project.

Namespace:  Microsoft.VisualStudio.Package.Automation
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable ReadOnly Property SourceProject As Project
'使用
Dim instance As OAReferenceBase
Dim value As Project

value = instance.SourceProject
public virtual Project SourceProject { get; }
public:
virtual property Project^ SourceProject {
    Project^ get ();
}
public function get SourceProject () : Project

Property Value

Type: Project

Project if the reference is a project, otherwise a null reference (Nothing in Visual Basic).

Remarks

By default this method returns a null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

OAReferenceBase<RefType> Class

OAReferenceBase<RefType> Members

Microsoft.VisualStudio.Package.Automation Namespace