DocDataTextWriter::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 service.
Implements
IServiceProvider::GetService(Type^)This method is implemented to allow objects that utilize this text writer to re-discover the original DocData it is associated with. In many instances redirecting through the System.IO classes doesn't allow enough fidelity. An example of this is when a text writer must write out the entire file instead of only writing out specific changed portions or portions of interest. The following services are provided:
typeof(DocData) typeof(EnvDte.TextDocument) // If DocData supports it.
Show: