Aracılığıyla paylaş


IVsSolutionLoadManager.OnBeforeOpenProject Yöntem (Guid, Guid, String, IVsSolutionLoadManagerSupport)

 

Her proje açılmadan önce harekete geçirdi.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop.10.0 (Microsoft.VisualStudio.Shell.Interop.10.0.dll içinde)

Sözdizimi

int OnBeforeOpenProject(
    [InAttribute] ref Guid guidProjectID,
    [InAttribute] ref Guid guidProjectType,
    string pszFileName,
    IVsSolutionLoadManagerSupport pSLMgrSupport
)
int OnBeforeOpenProject(
    [InAttribute] Guid% guidProjectID,
    [InAttribute] Guid% guidProjectType,
    String^ pszFileName,
    IVsSolutionLoadManagerSupport^ pSLMgrSupport
)
abstract OnBeforeOpenProject : 
        guidProjectID:Guid byref *
        guidProjectType:Guid byref *
        pszFileName:string *
        pSLMgrSupport:IVsSolutionLoadManagerSupport -> int
Function OnBeforeOpenProject (
    <InAttribute> ByRef guidProjectID As Guid,
    <InAttribute> ByRef guidProjectType As Guid,
    pszFileName As String,
    pSLMgrSupport As IVsSolutionLoadManagerSupport
) As Integer

Parametreler

  • guidProjectID
    Açılacak bireysel proje iliºkin GUID.
  • guidProjectType
    (Örneğin açılması için proje türü GUIDVisual Basic veya C#).
  • pszFileName
    Proje dosyasının adı.

Dönüş Değeri

Type: System.Int32

Yöntem başarılı olursa, verir S_OK.Başarısız olursa, bir hata kodu döndürür.

Notlar

Genellikle bir çözüm yük Yöneticisi çağırarak proje yükü önceliğini ayarlamak için bu yöntemi kullanır SetProjectLoadPriority.

Ayrıca bkz.

IVsSolutionLoadManager Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön