DocDataTextReader::IServiceProvider::GetService Method (Type^)
Visual Studio 2015
Gets the service of the specified type.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
private: virtual Object^ GetService( Type^ serviceType ) sealed = IServiceProvider::GetService
Parameters
- serviceType
-
Type:
System::Type^
The type of the service to be retrieved.
Implements
IServiceProvider::GetService(Type^)This method allows objects receiving this DocDataTextReader to rediscover the original DocData it is associated with. We provide this ability because in many instances, redirecting through the System.IO classes doesn't allow enough fidelity. For example, using a text writer, the writer must write the entire file, rather than just the interesting portions. The following services are provided:
typeof(DocData) typeof(EnvDte.TextDocument) // If DocData supports it.
Show: