IVsPropertyFileIn.Read 方法

定义

从流中读取属性和值。

public:
 int Read(System::UInt32 cchPropertyName, cli::array <System::UInt16> ^ szPropertyName, [Runtime::InteropServices::Out] System::UInt32 % pcchPropertyNameActual, cli::array <Microsoft::VisualStudio::Shell::Interop::VSPROPERTYSTREAMPROPERTYTYPE> ^ pvspspt, [Runtime::InteropServices::Out] System::Object ^ % pvarValue, Microsoft::VisualStudio::OLE::Interop::IErrorLog ^ pIErrorLog);
int Read(unsigned int cchPropertyName, std::Array <unsigned short> const & szPropertyName, [Runtime::InteropServices::Out] unsigned int & pcchPropertyNameActual, std::Array <Microsoft::VisualStudio::Shell::Interop::VSPROPERTYSTREAMPROPERTYTYPE> const & pvspspt, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvarValue, Microsoft::VisualStudio::OLE::Interop::IErrorLog const & pIErrorLog);
public int Read (uint cchPropertyName, ushort[] szPropertyName, out uint pcchPropertyNameActual, Microsoft.VisualStudio.Shell.Interop.VSPROPERTYSTREAMPROPERTYTYPE[] pvspspt, out object pvarValue, Microsoft.VisualStudio.OLE.Interop.IErrorLog pIErrorLog);
abstract member Read : uint32 * uint16[] * uint32 * Microsoft.VisualStudio.Shell.Interop.VSPROPERTYSTREAMPROPERTYTYPE[] * obj * Microsoft.VisualStudio.OLE.Interop.IErrorLog -> int
Public Function Read (cchPropertyName As UInteger, szPropertyName As UShort(), ByRef pcchPropertyNameActual As UInteger, pvspspt As VSPROPERTYSTREAMPROPERTYTYPE(), ByRef pvarValue As Object, pIErrorLog As IErrorLog) As Integer

参数

cchPropertyName
UInt32

中的长度 szPropertyName

szPropertyName
UInt16[]

弄包含属性名称的字符串。

pcchPropertyNameActual
UInt32

弄属性名称的长度。

pvspspt
VSPROPERTYSTREAMPROPERTYTYPE[]

弄一个指向枚举值的指针 VSPROPERTYSTREAMPROPERTYTYPE ,该枚举指示此属性是属性流的简单属性还是子流。

pvarValue
Object

弄一个包含属性值的变量。

pIErrorLog
IErrorLog

中用于 IErrorLog 报告错误的接口。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

注解

COM 签名

从 vsshell:

[C++]

HRESULT IVsPropertyFileIn::Read(  
   [in] ULONG cchPropertyName,   
   [in, out, size_is(cchPropertyName)] OLECHAR szPropertyName[],   
   [out] ULONG *pcchPropertyNameActual,   
   [out] VSPROPERTYSTREAMPROPERTYTYPE *pvspspt,   
   [out] VARIANT *pvarValue,   
   [in] IErrorLog *pIErrorLog  
);  

适用于