Freigeben über


IVsPropertyStreamOut.BeginPropertySection Method

Begins a property section (inner property stream) used until a call to EndPropertySection.

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

Syntax

'Declaration
Function BeginPropertySection ( _
    szName As String, _
    szLineComment As String, _
    <OutAttribute> ByRef ppIVsPropertyStreamOut As IVsPropertyStreamOut, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
int BeginPropertySection(
    string szName,
    string szLineComment,
    out IVsPropertyStreamOut ppIVsPropertyStreamOut,
    out uint pdwCookie
)
int BeginPropertySection(
    [InAttribute] String^ szName, 
    [InAttribute] String^ szLineComment, 
    [OutAttribute] IVsPropertyStreamOut^% ppIVsPropertyStreamOut, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract BeginPropertySection : 
        szName:string * 
        szLineComment:string * 
        ppIVsPropertyStreamOut:IVsPropertyStreamOut byref * 
        pdwCookie:uint32 byref -> int
function BeginPropertySection(
    szName : String, 
    szLineComment : String, 
    ppIVsPropertyStreamOut : IVsPropertyStreamOut, 
    pdwCookie : uint
) : int

Parameters

  • szName
    Type: String

    [in] String containing the name of the property section.

  • szLineComment
    Type: String

    [in] String containing a comment about the section.

  • pdwCookie
    Type: UInt32%

    [out] Pointer to an integer that is a cookie identifying this property section. Used in the call to EndPropertySection.

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 IVsPropertyStreamOut::BeginPropertySection(
   [in] LPCOLESTR szName, 
   [in] LPCOLESTR szLineComment, 
   [out] IVsPropertyStreamOut **ppIVsPropertyStreamOut, 
   [out] VSCOOKIE *pdwCookie
);

.NET Framework Security

See Also

Reference

IVsPropertyStreamOut Interface

Microsoft.VisualStudio.Shell.Interop Namespace