Udostępnij za pośrednictwem


Metoda IVsBuildPropertyStorage.GetPropertyValue — (String, String, UInt32, String)

 

Pobiera MSBuild wartość właściwości.

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

Składnia

int GetPropertyValue(
    string pszPropName,
    string pszConfigName,
    uint storage,
    out string pbstrPropValue
)
int GetPropertyValue(
    String^ pszPropName,
    String^ pszConfigName,
    unsigned int storage,
    [OutAttribute] String^% pbstrPropValue
)
abstract GetPropertyValue : 
        pszPropName:string *
        pszConfigName:string *
        storage:uint32 *
        pbstrPropValue:string byref -> int
Function GetPropertyValue (
    pszPropName As String,
    pszConfigName As String,
    storage As UInteger,
    <OutAttribute> ByRef pbstrPropValue As String
) As Integer

Parametry

  • pszPropName
    Type: System.String

    [in] Nazwa właściwości kompilacji.

  • pszConfigName
    Type: System.String

    [in] Nazwa konfiguracji kompilacji.

  • pbstrPropValue
    Type: System.String

    [out, retval] Określa wartość MSBuild Właściwości obiektu.

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 IVsBuildPropertyStorage::GetPropertyValue(
   [in] LPCOLESTR pszPropName,
   [in] LPCOLESTR pszConfigName,
   [in] PersistStorageType storage,
   [out, retval] BSTR* pbstrPropValue
);

Używane przez podtypu projektu do pobierania MSBuild obiektu wartości z podstawowej projektu. Aby uzyskać więcej informacji na podtypy projektu, zobacz Project Subtype Overview.

Zobacz też

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

Powrót do początku