IVsSolution2.OpenSolutionFile Yöntem (UInt32, String)
Bir çözüm dosyasını .sln türü, .dsw veya .vbg açar.
Ad Alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)
Sözdizimi
int OpenSolutionFile(
uint grfOpenOpts,
string pszFilename
)
int OpenSolutionFile(
unsigned int grfOpenOpts,
String^ pszFilename
)
abstract OpenSolutionFile :
grfOpenOpts:uint32 *
pszFilename:string -> int
Function OpenSolutionFile (
grfOpenOpts As UInteger,
pszFilename As String
) As Integer
Parametreler
grfOpenOpts
Type: System.UInt32[in] Bir çözüm dosyasını açmak için Seçenekler. Bir listesi için grfOpenOpts değerler, bakın __VSSLNOPENOPTIONS.
pszFilename
Type: System.String[in] İşaretçi açmak için çözüm dosyasının adı.
Dönüş Değeri
Type: System.Int32
Yöntem başarılı olursa, döndürür S_OK. Başarısız olursa, bir hata kodu döndürür.
Uygulanan
IVsSolution.OpenSolutionFile(UInt32, String)
Notlar
COM imza
Vsshell.idl:
HRESULT IVsSolution2::OpenSolutionFile(
[in] VSSLNOPENOPTIONS grfOpenOpts,
[in] LPCOLESTR pszFilename
);
Ayrıca bkz.
IVsSolution2 Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı
Başa dön