Compartilhar via


IVsBuildPropertyStorage.GetPropertyValue Method

Definition

Gets an MSBuild property value.

public:
 int GetPropertyValue(System::String ^ pszPropName, System::String ^ pszConfigName, System::UInt32 storage, [Runtime::InteropServices::Out] System::String ^ % pbstrPropValue);
int GetPropertyValue(std::wstring const & pszPropName, std::wstring const & pszConfigName, unsigned int storage, [Runtime::InteropServices::Out] std::wstring const & & pbstrPropValue);
public int GetPropertyValue (string pszPropName, string pszConfigName, uint storage, out string pbstrPropValue);
abstract member GetPropertyValue : string * string * uint32 * string -> int
Public Function GetPropertyValue (pszPropName As String, pszConfigName As String, storage As UInteger, ByRef pbstrPropValue As String) As Integer

Parameters

pszPropName
String

[in] Name of the build property.

pszConfigName
String

[in] Name of the build configuration.

storage
UInt32

[in] Storage type for file persistence. Values are taken from the _PersistStorageType enumeration.

pbstrPropValue
String

[out, retval] Specifies the value of the MSBuild property object.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsBuildPropertyStorage::GetPropertyValue(  
   [in] LPCOLESTR pszPropName,  
   [in] LPCOLESTR pszConfigName,  
   [in] PersistStorageType storage,  
   [out, retval] BSTR* pbstrPropValue  
);  

Used by a project subtype to retrieve the MSBuild object value from the base project. For more information on project subtypes, see Project Subtype Overview.

Applies to