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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
OAReferenceBase<RefType> Class