IVsBuildPropertyStorage.GetPropertyValue Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bir MSBuild özellik değeri alır.
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
Parametreler
- pszPropName
- String
'ndaki Build özelliğinin adı.
- pszConfigName
- String
'ndaki Derleme yapılandırmasının adı.
- storage
- UInt32
'ndaki Dosya kalıcılığı için depolama türü. Değerler _PersistStorageType numaralandırmasından alınır.
- pbstrPropValue
- String
[Out, retval] MSBuild Özellik nesnesinin değerini belirtir.
Döndürülenler
Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.
Açıklamalar
COM Imzası
Vsshell80. IDL adresinden:
HRESULT IVsBuildPropertyStorage::GetPropertyValue(
[in] LPCOLESTR pszPropName,
[in] LPCOLESTR pszConfigName,
[in] PersistStorageType storage,
[out, retval] BSTR* pbstrPropValue
);
Temel projeden MSBuild nesne değerini almak için bir proje alt türü tarafından kullanılır. Proje alt türleri hakkında daha fazla bilgi için bkz Project Subtype Overview ..