IVsBuildPropertyStorage.GetPropertyValue Method (String, String, UInt32, String)

 

Gets an MSBuild property value.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

abstract GetPropertyValue : 
        pszPropName:string *
        pszConfigName:string *
        storage:uint32 *
        pbstrPropValue:string byref -> int

Parameters

pszPropName
Type: System.String

[in] Name of the build property.

pszConfigName
Type: System.String

[in] Name of the build configuration.

storage
Type: System.UInt32

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

pbstrPropValue
Type: System.String

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

Return Value

Type: System.Int32

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

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.

Return to top
Show: