Bagikan melalui


IVsBuildPropertyStorage.GetPropertyValue Method

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)

Syntax

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

Parameters

  • pszPropName
    Type: System.String
    [in] Name of the build property.
  • pszConfigName
    Type: System.String
    [in] Name of the build configuration.
  • 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.

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.

.NET Framework Security

See Also

Reference

IVsBuildPropertyStorage Interface

Microsoft.VisualStudio.Shell.Interop Namespace