Share via


IVsSolution5.GetGuidOfProjectFile Method

Retrieves the GUID of the project specified by the given project file.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

Syntax

'Declaration
Function GetGuidOfProjectFile ( _
    pszProjectFile As String _
) As Guid
Guid GetGuidOfProjectFile(
    string pszProjectFile
)
Guid GetGuidOfProjectFile(
    [InAttribute] String^ pszProjectFile
)
abstract GetGuidOfProjectFile : 
        pszProjectFile:string -> Guid
function GetGuidOfProjectFile(
    pszProjectFile : String
) : Guid

Parameters

  • pszProjectFile
    Type: String

    [in] The project file from which to retrieve the GUID.

Return Value

Type: Guid
The GUID of the project.

.NET Framework Security

See Also

Reference

IVsSolution5 Interface

Microsoft.VisualStudio.Shell.Interop Namespace