Compartir a través de


IVsPropertyStreamIn.Read Method

Reads a property and value from the stream.

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

Syntax

'Declaration
Function Read ( _
    cchPropertyName As UInteger, _
    <OutAttribute> szPropertyName As UShort(), _
    <OutAttribute> ByRef pcchPropertyNameActual As UInteger, _
    <OutAttribute> pvspspt As VSPROPERTYSTREAMPROPERTYTYPE(), _
    <OutAttribute> ByRef pvarValue As Object, _
    pIErrorLog As IErrorLog _
) As Integer
int Read(
    uint cchPropertyName,
    ushort[] szPropertyName,
    out uint pcchPropertyNameActual,
    VSPROPERTYSTREAMPROPERTYTYPE[] pvspspt,
    out Object pvarValue,
    IErrorLog pIErrorLog
)
int Read(
    [InAttribute] unsigned int cchPropertyName, 
    [OutAttribute] array<unsigned short>^ szPropertyName, 
    [OutAttribute] unsigned int% pcchPropertyNameActual, 
    [OutAttribute] array<VSPROPERTYSTREAMPROPERTYTYPE>^ pvspspt, 
    [OutAttribute] Object^% pvarValue, 
    [InAttribute] IErrorLog^ pIErrorLog
)
abstract Read : 
        cchPropertyName:uint32 * 
        szPropertyName:uint16[] byref * 
        pcchPropertyNameActual:uint32 byref * 
        pvspspt:VSPROPERTYSTREAMPROPERTYTYPE[] byref * 
        pvarValue:Object byref * 
        pIErrorLog:IErrorLog -> int
function Read(
    cchPropertyName : uint, 
    szPropertyName : ushort[], 
    pcchPropertyNameActual : uint, 
    pvspspt : VSPROPERTYSTREAMPROPERTYTYPE[], 
    pvarValue : Object, 
    pIErrorLog : IErrorLog
) : int

Parameters

  • cchPropertyName
    Type: UInt32

    [in] Length of szPropertyName.

  • szPropertyName
    Type: array<UInt16[]

    [out] String containing the property name.

  • pcchPropertyNameActual
    Type: UInt32%

    [out] Length of property name.

  • pvarValue
    Type: Object%

    [out] A VARIANT containing the property value.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

[C++]

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

.NET Framework Security

See Also

Reference

IVsPropertyStreamIn Interface

Microsoft.VisualStudio.Shell.Interop Namespace