Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new instance of TextSnapshotToTextReader with the specified text snapshot.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Sub New ( _
textSnapshot As ITextSnapshot _
)
public TextSnapshotToTextReader(
ITextSnapshot textSnapshot
)
public:
TextSnapshotToTextReader(
ITextSnapshot^ textSnapshot
)
new :
textSnapshot:ITextSnapshot -> TextSnapshotToTextReader
public function TextSnapshotToTextReader(
textSnapshot : ITextSnapshot
)
Parameters
- textSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The ITextSnapshot to expose as a reader.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | textSnapshot is nulla null reference (Nothing in Visual Basic). |
.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.