IVsAsynchronousProjectCreate.CreateProjectAsync Yöntem

Tanım

Zaman uyumsuz bir proje oluşturur.

public:
 Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateProjectAsync(Guid % rguidProjectID, System::String ^ filename, System::String ^ location, System::String ^ pszName, System::UInt32 flags);
public Microsoft.VisualStudio.Shell.Interop.IVsTask CreateProjectAsync (ref Guid rguidProjectID, string filename, string location, string pszName, uint flags);
abstract member CreateProjectAsync : Guid * string * string * string * uint32 -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function CreateProjectAsync (ByRef rguidProjectID As Guid, filename As String, location As String, pszName As String, flags As UInteger) As IVsTask

Parametreler

rguidProjectID
Guid

'ndaki Çözüm dosyasındaki projenin GUID 'SI (tarafından döndürülen ile aynı GetGuidOfProject(IVsHierarchy, Guid) ).

filename
String

'ndaki Projenin dosya adı.

location
String

'ndaki Projenin konumu.

pszName
String

'ndaki Proje adı.

flags
UInt32

'ndaki Oluşturma bayrakları. Kullanılmadı.

Döndürülenler

IVsTask

Oluşturulan projeyi tanımlayan görev.

Açıklamalar

Öğesinin sonucu IVsTask VT_UNKNOWN türünde bir değişken olmalıdır ve QueryInterface oluşturulan projenin için sorgulanmalıdır () IVsHierarchy . Görev, proje oluşturma 'nın iptal edildiğini göstermek için E_ABORT döndürebilir. GetResultGörevdeki Yöntem, zaman uyumsuz proje oluşturma sırasında karşılaşılan herhangi bir hata için başarısız BIR HRESULT döndürüyor. Aksi takdirde sonuç, yönteminin VARIANT Out parametresinde döndürülür IVsTask.GetResult .

Şunlara uygulanır