Udostępnij za pośrednictwem


Metoda IVsAggregatableProject.InitializeForOuter — (String, String, String, UInt32, Guid, IntPtr, Int32)

 

Wywoływana przez właściciela, podtypu projektu zewnętrznego projekt jest własnością, wewnętrzne projektu podtyp jego pracy inicjowania.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Składnia

int InitializeForOuter(
    string pszFilename,
    string pszLocation,
    string pszName,
    uint grfCreateFlags,
    [InAttribute] ref Guid iidProject,
    out IntPtr ppvProject,
    out int pfCanceled
)
int InitializeForOuter(
    String^ pszFilename,
    String^ pszLocation,
    String^ pszName,
    unsigned int grfCreateFlags,
    [InAttribute] Guid% iidProject,
    [OutAttribute] IntPtr% ppvProject,
    [OutAttribute] int% pfCanceled
)
abstract InitializeForOuter : 
        pszFilename:string *
        pszLocation:string *
        pszName:string *
        grfCreateFlags:uint32 *
        iidProject:Guid byref *
        ppvProject:nativeint byref *
        pfCanceled:int byref -> int
Function InitializeForOuter (
    pszFilename As String,
    pszLocation As String,
    pszName As String,
    grfCreateFlags As UInteger,
    <InAttribute> ByRef iidProject As Guid,
    <OutAttribute> ByRef ppvProject As IntPtr,
    <OutAttribute> ByRef pfCanceled As Integer
) As Integer

Parametry

  • pszFilename
    Type: System.String

    [in] Nazwa pliku projektu, aby można było zainicjować projektu.

  • pszLocation
    Type: System.String

    [out] Lokalizacja pliku projektu zainicjowany.

  • pszName
    Type: System.String

    [in] Wskaźnik na ciąg zakończony znakiem null, zawierające nazwę.

  • iidProject
    Type: System.Guid

    [in] Identyfikator interfejsu zwracanego ppvProject.

  • ppvProject
    Type: System.IntPtr

    [out, iid_is(iidProject)] Wskaźnik do interfejsu określonego przez iidProject.

  • pfCanceled
    Type: System.Int32

    [out] Wskaźnik do flagę gdzie true wskazuje anulowane.

Wartość zwracana

Type: System.Int32

Jeśli metoda zakończy się pomyślnie, zwraca S_OK. Jeśli nie, zwraca kod błędu.

Uwagi

Podpis COM

Z vsshell80.idl:

HRESULT IVsAggregatableProject::InitializeForOuter(
   [in] LPCOLESTR pszFilename,
   [in] LPCOLESTR pszLocation,
   [in] LPCOLESTR pszName,
   [in] VSCREATEPROJFLAGS grfCreateFlags,
   [in] REFIID iidProject,
   [out, iid_is(iidProject)] void **ppvProject,
   [out] BOOL *pfCanceled
);

Podtyp własnością projektu należy spełnić wszystkie pracy tworzenia projektu, podobnie jak CreateProject, w implementacji tej metody.

Zobacz też

Interfejs IVsAggregatableProject
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku