IVsSolution2.GenerateUniqueProjectName Yöntem (String, String)
Kök proje adı verilen bir benzersiz proje adı oluşturur.
Ad Alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)
Sözdizimi
int GenerateUniqueProjectName(
string lpszRoot,
out string pbstrProjectName
)
int GenerateUniqueProjectName(
String^ lpszRoot,
[OutAttribute] String^% pbstrProjectName
)
abstract GenerateUniqueProjectName :
lpszRoot:string *
pbstrProjectName:string byref -> int
Function GenerateUniqueProjectName (
lpszRoot As String,
<OutAttribute> ByRef pbstrProjectName As String
) As Integer
Parametreler
lpszRoot
Type: System.String[in] Kök proje adı. Tümleştirilmesidir null gibi proje adı için uygun varsayılan değeri kullanılacak ortamı neden olur.
pbstrProjectName
Type: System.String[out] Belirtilen kök proje adına dayanarak proje adı işaretçi lpszRoot parametresi. Bu değer, çözüm içinde benzersizdir.
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.GenerateUniqueProjectName(String, String)
Notlar
COM imza
Vsshell.idl:
HRESULT IVsSolution2::GenerateUniqueProjectName(
[in] LPCOLESTR lpszRoot,
[out] BSTR *pbstrProjectName
);
Bu yöntem genellikle sihirbazları tarafından çağrılır. Çağırdığınızda CreateProject yöntemi ile benzersiz proje adını oluşturma ortam tanıtıcıları bir proje oluşturmak için Yeni proje iletişim kutusu.
Ayrıca bkz.
IVsSolution2 Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı
Başa dön