IVsUpgradeBuildPropertyStorage.GetPropertyValue Method
Gets the value of a specified property from a project file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Syntax
'宣言
Function GetPropertyValue ( _
pszPropName As String, _
pszConfigName As String, _
storage As UInteger, _
<OutAttribute> ByRef pbstrPropValue As String _
) As Integer
'使用
Dim instance As IVsUpgradeBuildPropertyStorage
Dim pszPropName As String
Dim pszConfigName As String
Dim storage As UInteger
Dim pbstrPropValue As String
Dim returnValue As Integer
returnValue = instance.GetPropertyValue(pszPropName, _
pszConfigName, storage, pbstrPropValue)
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
)
function GetPropertyValue(
pszPropName : String,
pszConfigName : String,
storage : uint,
pbstrPropValue : String
) : int
Parameters
pszPropName
Type: System.String[in] Name of the property
pszConfigName
Type: System.String[in] Configuration associated with the property
storage
Type: System.UInt32[in] _PersistStorageType specifying whether the property is stored in a project or user file.
pbstrPropValue
Type: System.String%[out] Value of the property
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 vsshell90.idl:
HRESULT GetPropertyValue(
[in] LPCOLESTR pszPropName,
[in] LPCOLESTR pszConfigName,
[in] PersistStorageType storage,
[out, retval] BSTR* pbstrPropValue
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsUpgradeBuildPropertyStorage Interface