IVsSharedMSBuildFilesManagerHierarchy2.GetSharedProjectReference Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an IVsSharedProjectReference object for a particular shared MSBuild file if it is referenced/imported by the given referencingProject, client (aka "Head") project. All callers must be prepared to check for a null return value.
public:
Microsoft::VisualStudio::Shell::Interop::IVsSharedProjectReference ^ GetSharedProjectReference(System::String ^ sharedFileFullPath, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ ReferencingProject);
public:
Microsoft::VisualStudio::Shell::Interop::IVsSharedProjectReference ^ GetSharedProjectReference(Platform::String ^ sharedFileFullPath, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ ReferencingProject);
Microsoft::VisualStudio::Shell::Interop::IVsSharedProjectReference GetSharedProjectReference(std::wstring const & sharedFileFullPath, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & ReferencingProject);
public Microsoft.VisualStudio.Shell.Interop.IVsSharedProjectReference GetSharedProjectReference (string sharedFileFullPath, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy ReferencingProject);
abstract member GetSharedProjectReference : string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy -> Microsoft.VisualStudio.Shell.Interop.IVsSharedProjectReference
Public Function GetSharedProjectReference (sharedFileFullPath As String, ReferencingProject As IVsHierarchy) As IVsSharedProjectReference
Parameters
- sharedFileFullPath
- String
The full path of a (potential) shared project file.
- ReferencingProject
- IVsHierarchy
The IVsHierarchy of a project that may be referencing a Shared Project (i.e. importing the shared project file owned by the Shared Project).
Returns
An IVsSharedProjectReference object or null if the given sharedFileFullPath has not been registered with the IVsSharedMSBuildFilesManagerHierarchy by the referencingProject.