DocDataTextWriter Constructor (DocData, Boolean)
Initializes a new instance of DocDataTextWriter for the specified doc data, and determines whether or not to dispose the doc data object when this instance is closed or disposed.
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Déclaration
Public Sub New ( _
docData As DocData, _
disposeDocData As Boolean _
)
'Utilisation
Dim docData As DocData
Dim disposeDocData As Boolean
Dim instance As New DocDataTextWriter(docData, _
disposeDocData)
public DocDataTextWriter(
DocData docData,
bool disposeDocData
)
public:
DocDataTextWriter(
DocData^ docData,
bool disposeDocData
)
new :
docData:DocData *
disposeDocData:bool -> DocDataTextWriter
public function DocDataTextWriter(
docData : DocData,
disposeDocData : boolean
)
Parameters
- docData
Type: Microsoft.VisualStudio.Shell.Design.Serialization.DocData
DocData.
- disposeDocData
Type: System.Boolean
If true, this instance should dispose the doc data when it is closed or disposed.
Remarks
docData must implement IVsTextStream or an exception will be thrown. When this object is either disposed or closed, it will call Dispose on the underlying docData if disposeDocData is true. The default value for disposeDocData is false.
.NET Framework Security
- 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.