다음을 통해 공유


DocDataTextReader Constructor (DocData, Boolean)

Initializes a new instance of DocDataTextReader for the specified doc data object and determines whether Dispose will be called on the docData when the DocDataTextReader is disposed.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

‘선언
Public Sub New ( _
    docData As DocData, _
    disposeDocData As Boolean _
)
‘사용 방법
Dim docData As DocData
Dim disposeDocData As Boolean

Dim instance As New DocDataTextReader(docData, _
    disposeDocData)
public DocDataTextReader(
    DocData docData,
    bool disposeDocData
)
public:
DocDataTextReader(
    DocData^ docData, 
    bool disposeDocData
)
new : 
        docData:DocData * 
        disposeDocData:bool -> DocDataTextReader
public function DocDataTextReader(
    docData : DocData, 
    disposeDocData : boolean
)

Parameters

Remarks

The doc data object must implement IVsTextStream or an exception will be thrown. When this object is either disposed or closed, it will call Dispose on the underlying doc data object if disposeDocData is true. The default value for disposeDocData is false.

.NET Framework Security

See Also

Reference

DocDataTextReader Class

DocDataTextReader Members

DocDataTextReader Overload

Microsoft.VisualStudio.Shell.Design.Serialization Namespace