IVsSolution.CanCreateNewProjectAtLocation Yöntem (Int32, String, Int32)
Yeni bir proje belirli bir konumda oluşturulan olup olmadığını belirler.
Ad Alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)
Sözdizimi
int CanCreateNewProjectAtLocation(
int fCreateNewSolution,
string pszFullProjectFilePath,
out int pfCanCreate
)
int CanCreateNewProjectAtLocation(
int fCreateNewSolution,
String^ pszFullProjectFilePath,
[OutAttribute] int% pfCanCreate
)
abstract CanCreateNewProjectAtLocation :
fCreateNewSolution:int *
pszFullProjectFilePath:string *
pfCanCreate:int byref -> int
Function CanCreateNewProjectAtLocation (
fCreateNewSolution As Integer,
pszFullProjectFilePath As String,
<OutAttribute> ByRef pfCanCreate As Integer
) As Integer
Parametreler
fCreateNewSolution
Type: System.Int32[in] Varsa true, yeni bir çözüm oluşturulur.
pszFullProjectFilePath
Type: System.String[in] Proje yolu (dosya adı ve uzantısı dahil) yeni proje oluşturmak için konum.
pfCanCreate
Type: System.Int32[out] Varsa true, sonra da yeni bir proje, belirli bir ada belirtilen konumda oluşturulabilir. Varsa false, ardından belirtilen konumda zaten aynı ada sahip bir proje.
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.
Notlar
COM imza
Vsshell.idl:
HRESULT IVsSolution::CanCreateNewProjectAtLocation(
[in] BOOL fCreateNewSolution,
[in] LPCOLESTR pszFullProjectFilePath,
[out] BOOL *pfCanCreate
);
Bu yöntem, belirtilen ada sahip yeni bir proje belirli bir konumda oluşturulan olup olmadığını belirler. Sihirbazlar için temel olarak kullanılır.
Ayrıca bkz.
IVsSolution Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı
Başa dön