IVsPropertyStreamIn.Read Method
Visual Studio 2008
Reads a property and value from the stream.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int Read( uint cchPropertyName, ushort[] szPropertyName, out uint pcchPropertyNameActual, VSPROPERTYSTREAMPROPERTYTYPE[] pvspspt, out Object pvarValue, IErrorLog pIErrorLog )
Parameters
- cchPropertyName
- Type: System.UInt32
[in] Length of szPropertyName.
- szPropertyName
- Type: System.UInt16[]
[out] String containing the property name.
- pcchPropertyNameActual
- Type: System.UInt32%
[out] Length of property name.
- pvspspt
- Type: Microsoft.VisualStudio.Shell.Interop.VSPROPERTYSTREAMPROPERTYTYPE[]
[out] Pointer to a value from the VSPROPERTYSTREAMPROPERTYTYPE enumeration indicating whether this is a simple property or a substream of the property stream.
- pvarValue
- Type: System.Object%
[out] A VARIANT containing the property value.
- pIErrorLog
- Type: Microsoft.VisualStudio.OLE.Interop.IErrorLog
[in] The IErrorLog interface to use for reporting errors.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
- 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.